Skip to content
Snippets Groups Projects
Commit 810d7923 authored by trav's avatar trav
Browse files

new delete function for clearing subscriptions

parent 66956b13
No related branches found
No related tags found
No related merge requests found
Pipeline #11364 passed
from django.core.management.base import BaseCommand
from djangoldp_webpushnotification.models import VAPIDKeyset
from webpush.models import SubscriptionInfo
class Command(BaseCommand):
help = "delete subscriptions"
def handle(self, *args, **options):
SubscriptionInfo.objects.all().delete()
self.stdout.write("Subscriptions deleted")
exit(0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment