Enable delete function

A user can now successfully delete a task