Add function to delete task