---
schema_version: "1"
id: c6e12e0212f85bfcaedd3dc8a6482fa52f0fad989d8efda5a241b391a35cad59
title: Unfollow a Record
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/connectapi_examples_unfollow_record.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_unfollow_record.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 75abdbf4fdb08bb2a951162f26ceeb78d84fb00ca4a9297c1b7ba9552546a43e
description: Call a method to stop following a record.
---
# Unfollow a Record

Call a method to stop following a record.

When you follow a record such as a user, the call to ConnectApi.ChatterUsers.follow returns a ConnectApi.Subscription object. To unfollow a record, pass the id property of that object to [deleteSubscription(communityId, subscriptionId)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_ConnectAPI_Chatter_static_methods.htm#apex_ConnectAPI_Chatter_deleteSubscription).

ConnectApi.Chatter.deleteSubscription(null, '0E8RR0000004CnK0AU');

#### See Also

- [Follow a Record](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_follow_record.htm "Call a method to follow a record.")