+ Start a Discussion
ShreyankaShreyanka 

I want to delete the content files

I tried deleting the files directly from the file content details page, using data loader, and also using apex code. But it's throwing me the error: "This document is awaiting archival. Cannot be deleted at this time. Please try again later"

There is a package installed called Actiance vantage connector on the ContentVersion Object. And it's description is to archive the Salesforce chatter and files. So that package might be restricting us from the delete process of files.

If Anyone has the solution to override the functionality of the Actiance vantage connector package and delete the files. Please share it.


Thanks in advance!
PriyaPriya (Salesforce Developers) 

Hi Shreya,

Kindly refer this below links :- 

https://salesforce.stackexchange.com/questions/136971/how-to-delete-document-in-content-version

https://salesforce.stackexchange.com/questions/245336/how-to-delete-contentdocument-records-associated-with-agreements-record

Regards,

Priya Ranjan