How to mass delete leads and contacts plus tasks and campaign memberships? - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Katherine ChalmersKatherine Chalmers 

How to mass delete leads and contacts plus tasks and campaign memberships?

If we mass delete a set of leads and contacts, are their tasks and campaign memberships also deleted? If not, how do we easily delete these related records before deleting the leads and contacts. I am trying to reduce our data usage.
Best Answer chosen by Katherine Chalmers
Steve MolisSteve Molis
If you delete the Lead or Contact record their Campaign Member records are also deleted, it's known as a "Cascading Delete"

All Answers

Jonathan FoxJonathan Fox
You can utilise Dataloader to perform a mass delete as such.
Katherine ChalmersKatherine Chalmers
Thanks! Is there a special setting I need to ensure all three elements get deleted?
Krishna DadiKrishna Dadi
HI Katherine Chalmers,
Another easy option is using workbench , first download the ids of the records you want to delete,  and after that upload same file to delete as simple as that.

 
Katherine ChalmersKatherine Chalmers
Thanks, but how do I ensure the tasks and campaign memberships get purged at the same time?
Steve MolisSteve Molis
If you delete the Lead or Contact record their Campaign Member records are also deleted, it's known as a "Cascading Delete"
This was selected as the best answer
Katherine ChalmersKatherine Chalmers
Awesome. Thanks so much!
Steve MolisSteve Molis
No problem, glad you got it sorted out