def delete(*, db_session, task_id: int):
    'Delete an existing task.'
    task = db_session.query(Task).filter((Task.id == task_id)).first()
    db_session.delete(task)
    db_session.commit()
Delete an existing task.
def delete(*, db_session, task_id: int):
    
    task = db_session.query(Task).filter((Task.id == task_id)).first()
    db_session.delete(task)
    db_session.commit()