Added delete function for entity.