<gh_stars>1-10
from django.core.management.base import BaseCommand
from wagtail.documents.models import Document


class Command(BaseCommand):
    def handle(self, *args, **options):
        Document.objects.all().delete()
        self.stdout.write(self.style.SUCCESS("Successfully deleted all documents"))

from django.core.management.base import BaseCommand
from wagtail.documents.models import Document


class Command(BaseCommand):
    def handle(self, *args, **options):
        Document.objects.all().delete()
        self.stdout.write(self.style.SUCCESS("Successfully deleted all documents"))