code: def wipe_task(self, courseid, taskid):
          
          submissions = self.database.submissions.find({"courseid": courseid, "taskid": taskid})
          for submission in submissions:
              for key in ["input", "archive"]:
                  if key in submission and type(submission[key]) == bson.objectid.ObjectId:
                      self.submission_manager.get_gridfs().delete(submission[key])
  
          self.database.aggregations.remove({"courseid": courseid, "taskid": taskid})
          self.database.user_tasks.remove({"courseid": courseid, "taskid": taskid})
          self.database.submissions.remove({"courseid": courseid, "taskid": taskid})
  
          self._logger.info("Task %s/%s wiped.", courseid, taskid)
docs: Wipe the data associated to the taskid from DB