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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Potential issues with using Bulk Delete job to Delete contacts

(0) ShareShare
ReportReport
Posted on by 115

In a test environment we have uploaded a large number of contacts. However now we need to delete them.

We want to delete approx half the contacts from the system and were planning on using a bulk delete job to this.

There is a chance that a contact record that we want to delete will have related records in other entities - for example custom entities.

If we delete a contact, using a bulk delete job - then will any records in other entities that are related to that contact record also get deleted ?

Are there any other issues that we need to worry about when using bulk delete to delete contacts ?

Thanks

I have the same question (0)
  • Suggested answer
    dian74 Profile Picture
    2,481 Most Valuable Professional on at

    Whether or not a related record will be deleted depends on the relationship. Parental relationships will delete the related tables. For example all activities related to the contact will be deleted. You can find the relationships for a table by opening the default solution file, expanding the table and viewing the 1:N relationships for that table. When you open a relationship, under relationship behavior you'll be able to see what happens when the parent record is deleted. In the screenshot below I created a custom 'Application' table. As you can see the 'Delete' option under Relationship behavior shows "Remove Link' which means the application record will not be deleted when the contact is deleted. The link to the contact lookup will be blank on the application record. 

    PLEASE MARK AS VERIFIED IF HELPFUL

    pastedimage1622042226187v1.png

  • Suggested answer
    Brandon Sambat Profile Picture
    Microsoft Employee on at

    As Dian stated you have to review the Cascade settings for the 1:N relationships for the entity you wish to delete. docs.microsoft.com/.../entity-relationship-behavior.  Also note that some Cascade delete cannot be modified. 

    pastedimage1622060055726v1.png

    When you execute the delete job you will want to set the Dynamics instance into Admin mode as this will only allow Admins to log into the system.  One more item to verify is that you have disabled any workflows and plugins that may execute an action when the Contact record is updated or deleted. This can cause performance issues and possible SQL timeouts. 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 52

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans