Changing delete to destroy for tasks