destroyLike abstract method

Future<TwitterResponse<LikeStateData, void>> destroyLike({
  1. required String userId,
  2. required String tweetId,

Allows a user or authenticated user ID to unlike a Tweet.

The request succeeds with no action when the user sends a request to a user they're not liking the Tweet or have already unliked the Tweet.


  • userId: The user ID who you are removing a Like of a Tweet on behalf of. It must match your own user ID or that of an authenticating user, meaning that you must pass the Access Tokens associated with the user ID when authenticating your request.

  • tweetId: The ID of the Tweet that you would like the id to unlike.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE
  • OAuth 1.0a

Required Scopes

  • like.write

Rate Limits

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



Future<TwitterResponse<LikeStateData, void>> destroyLike(
    {required String userId, required String tweetId});