Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Delete entire data of ...
Finance forum
Suggested answer

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

Posted on by 57
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
  • Suggested answer
    Anthony Blake Profile Picture
    Anthony Blake 1,226 on at
    Delete entire data of the system using X++ in D365FO
    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
  • Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 7,292 User Group Leader on at
    Delete entire data of the system using X++ in D365FO
    Hi Roy,
     
    I think you can do it with excel addin !
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,989 Super User on at
    Delete entire data of the system using X++ in D365FO
    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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,989 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans