Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Mass record deletion Script

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

CRM 2011 on-prem instance with a 600G DB. They have over 300G in ActivityPointer Records -- 43 million are emails. 

They want to delete these emails which equate to 41 million. This would take months to do so with Bulk Delete or Scribe with a continuously running process.

We are looking for Microsoft to supply a SQL query to delete these emails. We all know this is unsupported, but they have been known to do this in the past. Unfortunately, we could use an answer sooner than later.

*This post is locked for comments

  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: Mass record deletion Script

    Hi Matthew,

    43 million will not take months to delete using Scribe or SDK.

    Usually we can achieve 1 million record per hour so it appears to be  2 day job to delete.

    Also, if you can use PFE library with proper infra then it wont even take more than 6-7hr to get this done.

    As far as product support goes, you can log a ticket on support site as P1 and your request will be taken care however 43 million is not a big count. I have seen that happening for 500+ million records earlier but you can give a try.

    Do let me know if you need any help in using PFE library or SSIS - can help you in getting that done.

    Thanks,

    Prateek

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans