Implemented method to delete a model