def delete_task(task_id):
<EOL>try:<EOL><INDENT>res = _pybossa_req('<STR_LIT>', '<STR_LIT>', task_id)<EOL>if type(res).__name__ == '<STR_LIT:bool>':<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return res<EOL><DEDENT><DEDENT>except:  <EOL><INDENT>raise<EOL><DEDENT>
Delete a task for a given task ID.

    :param task: PYBOSSA task