(taskid)
Delete own task ID
Delete own task ID
Delete own task ID
def task_delete(taskid):
    """
    Delete own task ID
    """
    if taskid in DataStore.tasks:
        DataStore.tasks.pop(taskid)

        logger.debug("[%s] Deleted task" % taskid)
        return jsonize({"success": True})
    else:
        logger.warning("[%s] Invalid task ID provided to task_delete()" % taskid)
        return jsonize({"success": False, "message": "Invalid task ID"})
def task_delete ( taskid ) : if taskid in DataStore . tasks : DataStore . tasks . pop ( taskid ) logger . debug ( "[%s] Deleted task" % taskid ) return jsonize ( { "success" : True } ) else : logger . warning ( "[%s] Invalid task ID provided to task_delete()" % taskid ) return jsonize ( { "success" : False , "message" : "Invalid task ID" } )