Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Delete sample data

Posted on by 15

I just installed the Nonprofit Accelerator.  During the install I did not check the box to include sample data.  However, after the install i have some sample data.  Before the install, I had not used dataverse for anything so there was no data.  Is there any way to delete the sample data in bulk?

  • nehaagarwal24 Profile Picture
    nehaagarwal24 30 on at
    RE: Delete sample data

    Thanks for script. @Rajesh swamireddy

    Wow Emoji

  • jeffwllmstaste Profile Picture
    jeffwllmstaste 15 on at
    RE: Delete sample data

    Thank you, this looks like it did the trick.  I havent gone through all the tables but it looks like most everything it gone.

  • Verified answer
    RE: Delete sample data

    Hi jeffwllmstaste

    Thanks for reaching out.

     I have verified with our PM team, and they shared as below steps

    I have attached a zip file with two Powershell scripts and a data.xml file which contains the Nonprofit Accelerator sample data. The scripts in this zip file can be used to remove the sample data.

     A pre-requisite for running these script is that we install a Powershell library for Dynamics CRM from here: https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell . Please follow the instructions to install this.

     Once we have the Powershell Dynamics library installed, the scripts can be executed as follows in a Powershell command prompt:

     If you have Fundraising and Engagement installed in the same environment, then need to disable the FundraisingandEngagement plugin by executing :

        .\disable-plugin.ps1

    • Then remove the sample data by executing:

        .\delete-sample-data.ps1 <path-to-data.xml>

    • Finally, After the deleting the sample data, please restore the FundraisingandEngagement plugin:

        .\disable-plugin.ps1 -disable $false

     Note: Please take a system backup before running the scripts.

    remove_2D00_sample_2D00_data.zip

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans