hw_todo/routes.py
def delete(id):
    """
    (DELETE)
    Deletes the given assignment
    """
    task_to_delete = Todo.query.get_or_404(id)

    try:
        db.session.delete(task_to_delete)
        db.session.commit()
        return Response(status=204)
    except:
        return 'There was a problem deleting that task'

    (DELETE)
    Deletes the given assignment
    
(DELETE)
Deletes the given assignment
( DELETE ) Deletes the given assignment
def delete(id):
    task_to_delete = Todo.query.get_or_404(id)
    try:
        db.session.delete(task_to_delete)
        db.session.commit()
        return Response(status=204)
    except:
        return 'There was a problem deleting that task'
def delete ( id ) : task_to_delete = Todo . query . get_or_404 ( id ) try : db . session . delete ( task_to_delete ) db . session . commit ( ) return Response ( status = 204 ) except : return 'There was a problem deleting that task'
(DELETE)
Deletes the given assignment
( DELETE ) Deletes the given assignment
"""
    (DELETE)
    Deletes the given assignment
    """
id