from django.core.management.base import BaseCommand
from wagtail.core.models import Page


class Command(BaseCommand):
    def handle(self, *args, **options):
        Page.objects.filter(slug='forms').delete()
        Page.objects.filter(slug='surveys').specific().delete()

add command for remove_surveys_and_form_indexpage