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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Delete entire data of the system using X++ in D365FO

(2) ShareShare
ReportReport
Posted on by
Hello,
 
I want to create a functionality that helps me to delete all the data in my system using X++,
the tables are related anyways so I have to be aware o which table to delete before the other.
(I suggested to show the hierarchy of the tables in my system)
 
Can someone help,
Thank you
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,196 Super User 2026 Season 1 on at
    Hi Roy,

    What is the business requirement to delete all data? In case you want to start with an empty database, you can restore a backup of a clean environment, You can also recreate an environment. If you are using the Power Platform admin center, you can copy an empty environment including all data and metadata.
  • Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
    Hi Roy,
     
    I think you can do it with excel addin !
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Anthony Blake Profile Picture
    3,152 Super User 2026 Season 1 on at
    What are you trying to achieve? There is almost certainly a better way get to you end goal....
     
    If you must go ahead with this, use the delete_from command, and you will probably also need skipDeleteActions() to skip some validations if you are determined to delete data in this way

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans