After created an Organizational entitie by mistake, like a Company Code or Plant you want to delete this.
SAP do not have provision to delete any Organizational Structure Entity for activated solution. Our suggestion is to maintain description of the unwanted record as DO NOT USE.
This is also valid to any of the organizational units (Service Structure, for instance) that are covered by the app: once activated, deletion is not possible.
Once the unit has been activated this may be being used in several other tables and transactions, so any attempt to delete this entry could potentially lead to system inconsistencies.
KBA 2780957 - Wrongly created company code in S/4HANA CLOUD
Org Structure, SSCUI, Manage your solution, Configure your solution, delete. , KBA , SV-CLD-FRM-APP , Flexorg, CCF, Foreign Key Check , How To