Refactor controller - delete operation