web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Database scrub

(0) ShareShare
ReportReport
Posted on by

Hello All,

In AX2012 there was an unsupported class that you could execute to delete all data in the database.  I was wondering if a similar class or job existed in D365, or if anyone has a routine or script they followed to do the same.

My goal here is to get a scrubbed copy of our PROD database into a DEV VM for the purpose of development.  We want to take precautions for eliminating risk associated to our customer list, vendors, credit cards, etc when restoring our PROD DB to DEV VMs for development and testing purposes.

Any help is appreciated.

Thanks,

Steve

I have the same question (0)
  • Summit_Steve Profile Picture
    on at
    RE: Database scrub

    Hi Andre,

    Yes. That is the class I remember using.  Thanks for the tip.

    Steve

  • Verified answer
    André Arnaud de Calavon Profile Picture
    297,399 Super User 2025 Season 2 on at
    RE: D365 F&O Database scrub

    Hi Steve,

    The class SysDatabaseTransDelete is still available in the application and will work. Note that it is not supported and might leave some tables untouched causing inconsistent data. Ensure you will never run it on a production environment.

    You can run the class by changing the URL parameters to: &cmp=USMF&mi=SysClassRunner&cls=SysDatabaseTransDelete.

    Replace USMF with the actual company ID for which you want to delete the transactions.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 785 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 626 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 621 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans