destroyFollow abstract method

Future<TwitterResponse<FollowStateData, void>> destroyFollow({
  1. required String userId,
  2. required String targetUserId,

Allows a user ID to unfollow another user.

The request succeeds with no action when the authenticated user ends a request to a user they're not following or have already unfollowed.


  • userId: The user ID who you would like to initiate the unfollow on behalf of. You must pass the Access Tokens that relate to this user when authenticating the request.

  • targetUserId: The user ID of the user that you would like the user id to unfollow.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE
  • OAuth 1.0a

Required Scopes

  • follows.write

Rate Limits

  • User rate limit (OAuth 2.0 user Access Token): 50 requests per 15-minute window per each authenticated user



Future<TwitterResponse<FollowStateData, void>> destroyFollow(
    {required String userId, required String targetUserId});