Newer Version Available

This content describes an older version of this product. View Latest

Unfollow a Record

When you follow a record, the call to ConnectApi.ChatterUsers.follow returns a ConnectApi.Subscription object. To unfollow a record, pass the id property of that object to the deleteSubscription(String, String) method.
1swfobject.registerObject("clippy.codeblock-0", "9");ConnectApi.Chatter.deleteSubscription(null, '0E8RR0000004CnK0AU');