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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Database scrub

(0) ShareShare
ReportReport
Posted on by 14

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)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    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.

  • Summit_Steve Profile Picture
    14 on at

    Hi Andre,

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

    Steve

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans