The id needs to be turned into an entity before it can be deleted.