You need to sign in to do that
Don't have an account?

Need to delete feeds and files with apex
I create large amounts of feeds (via groups) including a pdf-file. Works fine.
I need to delete the old feeds and files permantly with apex in a backgroud-process. I manage to delete the feeds itself
delete [SELECT id FROM CollaborationGroupFeed WHERE xx LIMIT 1000];
and they are gone, but the files stay behind occupiing space and they need to go as well.
Cannnot find the right spot to do this.
I need to delete the old feeds and files permantly with apex in a backgroud-process. I manage to delete the feeds itself
delete [SELECT id FROM CollaborationGroupFeed WHERE xx LIMIT 1000];
and they are gone, but the files stay behind occupiing space and they need to go as well.
Cannnot find the right spot to do this.
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009A2yIAE
All Answers
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009A2yIAE