implemented a delete function for todo_items