MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / task_delete

Function task_delete

lib/utils/api.py:389–401  ·  view source on GitHub ↗

Delete an existing task

(taskid)

Source from the content-addressed store, hash-verified

387
388@get("/task/<taskid>/delete")
389def task_delete(taskid):
390 """
391 Delete an existing task
392 """
393 if taskid in DataStore.tasks:
394 DataStore.tasks.pop(taskid)
395
396 logger.debug("(%s) Deleted task" % taskid)
397 return jsonize({"success": True})
398 else:
399 response.status = 404
400 logger.warning("[%s] Non-existing task ID provided to task_delete()" % taskid)
401 return jsonize({"success": False, "message": "Non-existing task ID"})
402
403###################
404# Admin functions #

Callers

nothing calls this directly

Calls 3

jsonizeFunction · 0.90
debugMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…