Hello @DMC,
Thank you for connecting offline for discussing the issue.
Based on your question, currently you want to delete and clean-up your Entra ID of the objects which were previously synced by mistake as well as the objects which were showing in disconnected state.
We have followed the below process:
- Disable the directory sync: We followed the document Turn-off-directory-synchronization to disable the sync from on-prem to Entra, once we have executed the PowerShell commands, the objects will turn into cloud only objects and can be managed through Entra ID.
- Once we have confirmed that Get-MgOrganization | Select OnPremisesSyncEnabled is false, we deleted the objects from Entra.
- We also deleted the objects from Deleted users/group to avoid any soft match after enabling the Directory sync.
- Once the complete deletion has been completed, we can re-enable directory sync and configure OU filtering as required.
If you have any further questions or queries, please do let us know.