+ Start a Discussion
marchandojmarchandoj 

How to mass delete content

I've been tasked with deleting many documents that were contributed to many libraries.

Is it possible to mass delete them?

What Content table should i use?

 

Thanks

Rahul_sgRahul_sg

The steps to mass delete files from content using the dataloader are:
1. Export the ContentVersion object (do not reuse your successfile of the content upload!)
2. Don't us the ID of the ContentVersion, but use the CONTENTDOCUMENTID (which is the second column in your export file)
3. Use only those CONTENTDOCUMENTID's where "LastVersion"=TRUE

4. Than mass delete the object "ContentWorkspaceDocument". The ID you need is the CONTENTDOCUMENTID described above.

 

Thanks,

Rahul