summaryrefslogtreecommitdiff
path: root/kpov_judge/rm_task.py
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/rm_task.py')
-rwxr-xr-xkpov_judge/rm_task.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/kpov_judge/rm_task.py b/kpov_judge/rm_task.py
deleted file mode 100755
index 1752727..0000000
--- a/kpov_judge/rm_task.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env python3
-
-import settings
-import sys
-
-import pymongo
-
-if __name__ == '__main__':
- if len(sys.argv) < 2:
- print("Usage: {0} [task_name]".format(sys.argv[0]))
- exit(1)
- task_id = sys.argv[1]
- db = pymongo.MongoClient(settings.DB_URI).get_default_database()
- db.computers_meta.remove({'task_id': task_id})
- db.networks.remove({'task_id': task_id})
- db.task_checkers.remove({'task_id': task_id})
- db.tasks.remove({'task_id': task_id})
- db.prepare_disks.remove({'task_id': task_id})
- db.student_computers.remove({'task_id': task_id})
- db.results.remove({'task_id': task_id})
- db.gen_params.remove({'task_id': task_id})
- db.task_params_meta.remove({'task_id': task_id})
- db.task_params.remove({'task_id': task_id})
- db.task_instructions.remove({'task_id': task_id})
- db.howtos.remove({'task_id': task_id})
- db.howto_images.remove({'task_id': task_id})