Hi Experts,
We currently have two different legal entities operating within the same tenant. One of them now plans to separate its business and move to a new standalone D365FO tenant. The requirement is to remove the other legal entity’s records from the database before going live.
Is this feasible, or would you recommend an alternative best practice?
Thank you.
Sohaib, I reviewed the SysDatabaseTransDelete class, but since it’s deprecated and doesn’t support running in batch, it doesn’t seem feasible for my scenario.
Adis, To clarify, we currently have two companies, X and B, operating on the same Dynamics 365 instance. Company B has around 3–5 legal entities (B1, B2, B3, B4, B5). My requirement is to clean up and delete the data for Company X, which consists of two legal entities, X1 and X2.
In short, I need to completely remove legal entities X1 and X2 from the database and then import the db file on the UAT to verify the operations.
Kind regards, Adis
If this helped, please mark it as "Verified" for others facing the same issue
Keep in mind that it is possible to mark more than one answer as verified
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 868 User Group Leader
André Arnaud de Cal... 836 Super User 2025 Season 2
CA Neeraj Kumar 661