CWWIM4519E The 'unique_name' entity has descendants. It cannot be deleted or renamed.
Explanation
The delete or rename function can only be performed on a leaf entity, that is, an entity without any descendants. The specified entity has descendants.
Programmer response
Delete all the descendants of the entity first, then delete or rename the entity itself.