refactor to use name .destroy for delete method