0

Is there an easy way to delete all files via Apex - developer console?

Something like delete [select id from File];

2

You need to request ContentDocument in SOQL, not File:

delete [SELECT Id FROM ContentDocument];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.