---
title: "Unfollow user"
method: DELETE
path: "/x/users/{userId}/follow"
tags: ["X Write"]
---

# Unfollow user

`DELETE /x/users/{userId}/follow`

## Path parameters

- `userId` string, required

## Request body

- XAccountBody
  - `account` string, required — X account (@username or account ID)

## Response `200`

Success

- object
  - `success` true, required

## Other responses

- `401` — Unauthenticated
- `402` — Subscription or usage issue
- `500` — Write operation failed. Possible error codes include x_write_failed, x_write_ambiguous, x_duplicate_action, x_daily_limit (429 — account reached daily posting limit, wait 24 hours), and x_write_unconfirmed (202 — action may have completed but could not be confirmed, verify before retrying).

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xquik-dev/apis/xquik-api/revisions/2e39c853db18?raw)
