# Undo a retweet (repost) on X (Twitter)

Undo your repost of a tweet given its URL. Tweets that aren't currently reposted are reported rather than causing an error. Returns tweet_id, retweeted, was_retweeted.

- Site: x.com
- Address: `reduck/x.com/unretweet`
- Updated: 2026-10-22 (v3)
- Author: Reduck AI (reduck)

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/x.com/unretweet`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/x.com/unretweet
```

## Input

- `tweet_url` (string, required): Full URL of the tweet, e.g. https://x.com/handle/status/123

## Output

- `tweet_id` (string, required)
- `retweeted` (boolean, required)
- `was_retweeted` (boolean, required): already_present signal: true if the repost existed before this call
- `verified_on_page` (boolean, required): true if the page was reloaded and re-inspected after the action, confirming the repost is actually gone
- `account_used` (string | null, optional): handle of the logged-in account that performed the action, read from the account switcher UI (not assumed from input)

## FAQ

### What does "Undo a retweet (repost) on X (Twitter)" do?

Undo your repost of a tweet given its URL. Tweets that aren't currently reposted are reported rather than causing an error. Returns tweet_id, retweeted, was_retweeted.

### What information do I need to provide?

Required: tweet_url.

### What does it return?

It returns tweet_id, retweeted, account_used, was_retweeted, verified_on_page.

### Do I need to be logged in to x.com?

Yes. It acts as you on x.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the x.com cookies saved by the Reduck extension.

### Does it change anything on x.com, or only read data?

It makes changes on x.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/x.com/unretweet, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/x.com/unretweet

### Who maintains it?

It is part of Reduck's official curated catalogue.

Source: https://reduck.ai/explore/scripts/reduck/x.com/unretweet
