function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dhanesh SubramanianDhanesh Subramanian 

I do want to delete the feed automatically and immediately, if the feed is posted from particular salesforce user?

I do want to delete the feed automatically and immediately, if the feed is posted from particular salesforce user?
Sanpreet SainiSanpreet Saini
Hi Dhanseh,

Try to use something like this. 

delete [SELECT id from feeditem where createdbyid='id of the user'];