Announcements
No record found.
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.
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
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.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 616
André Arnaud de Cal... 460 Super User 2026 Season 1
Syed Haris Shah 331 Super User 2026 Season 1