several changes on auth flow
[osm/LW-UI.git] / sf_user / management / commands / clearsessions.py
diff --git a/sf_user/management/commands/clearsessions.py b/sf_user/management/commands/clearsessions.py
deleted file mode 100644 (file)
index 8717521..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-from django.core.management.base import BaseCommand, CommandError
-from sf_user.models import CustomSession
-
-
-class Command(BaseCommand):
-    help = 'Clean Users Sessions'
-
-    #def add_arguments(self, parser):
-    #    parser.add_argument('poll_id', nargs='+', type=int)
-
-    def handle(self, *args, **options):
-            try:
-                CustomSession.objects.all().delete()
-            except Exception:
-                raise CommandError('Error unable to clean users sessions')
-
-            self.stdout.write(self.style.SUCCESS('Successfully cleaned users sessions'))
\ No newline at end of file