Delete functionality for entities