Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Chatter Development
- :
- How to delete a chatter post file attachment via t...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to delete a chatter post file attachment via the Chatter REST API?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-16-2012 09:19 AM
We're using the Chatter REST API to attach files to records (as feed-items). This works well.
I also seem to be able to delete these chatter posts (feed-items) using the Chatter REST API - i.e., I see that the post is removed from the record in both the Chatter area as well as the "Notes & Attachments" area.
However, the actual file still seems to live in Salesforce and occupy file storage space - no good. I can see the "orphaned" files in the Chatter > Files section where I can manually delete them but of course I want the Chatter REST API to be able to delete them.
I've tried deleting the attachment directly using the files service but I get 404s when I do this. (I'm grabbing the attachment downloadUrl field and converting it into a delete request - so the url should be dead on.)
So how can I delete these files via the Chatter REST API so that they no longer consume file storage space?
Thanks.
- Rob

