- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Chatter Development
- :
- Purge chatter feed
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Purge chatter feed
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-16-2010 09:02 AM
I was wondering how I would go about deleting Chatter Feed data. In an org of a client where auto-follow is on, it auto-followed way too many records and now the feed is unusable and takes up a lot of space.
Curious if there's a way to delete the Chatter feed records. According the to API, I am seeing objects as selectable and deletable, but when I try through the System Log, I get errors that those objects don't support that.
How can I go about running a quick System Log script to delete Chatter feed records?
Solved! Go to Solution.
Re: Purge chatter feed
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-16-2010 10:21 AM
Figured it out. You have to query up each object's feed and delete those. Example on leads.
list<leadfeed> l = new list<leadfeed>();
for (leadfeed lf : [select id from leadfeed limit 1000]){
l.add(lf);
}
delete l;
Re: Purge chatter feed
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2010 08:24 PM
Mmm, I tried running the sample code above, but I got an error that I couldn't use the "LeadFeed" object.
Has anybody else had success purging Chatter feed records?
Visit my Force.com blog: http://theEnforcer.net
Re: Purge chatter feed
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-17-2010 03:19 AM
Aha! I figured it out.
Chatter needs to be turned on in Customize/Chatter/Settings. This will then make objects like AccountFeed and OpportunityFeed available to the System Log and Data Loader.
Now I've just got to get rid of my 16 million records!
Visit my Force.com blog: http://theEnforcer.net
Re: Purge chatter feed
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-18-2010 01:12 PM
An alternative method is to use the Data Loader with the Bulk API to extract and then delete records. This works extremely fast and is great if you've got millions of records to delete!
A full write-up on the process can be found at: http://theenforcer.net/2010/11/too-much-chatter/
Visit my Force.com blog: http://theEnforcer.net

