delete entity method