delete entity by id