delete_entity() now returns a success flag