# withdraw

URL: /business/nouns/post/withdraw · Id: `verb:Post.withdraw` · Call: `await $.Post.withdraw({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Withdraw takes a published Post down from its venue and keeps the record, its reach and its replies.

Withdraw takes a published [Post](/business/nouns/post) down from its venue and keeps the record, its reach and its replies.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The Post to take down. |
| `reason` | `text` | Yes | Why it comes down. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The withdrawn Post. |

## Effects
- Emits [`Post.withdrawn`](/business/events/Post.withdrawn).
- Performed by the [Content Lead](/agents/marketing/content-lead).
- One-way: it waits out its delay window, and runs in the `send` and `do` modes.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Post.withdraw](/business/nouns/post/withdraw) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | High: one-way, broad |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | 1 business day, in which a watcher can pause, redirect or cancel it; then it runs. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Withdraw the latest post.
```

**API**

```bash
curl -X POST https://api.sb/kilnbakery.com/posts/post_1/withdraw \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Example reason"}'
```

```json
{
  "api": "https://api.sb/kilnbakery.com",
  "post": {
    "$id": "https://api.sb/kilnbakery.com/posts/post_1",
    "$type": "Post",
    "format": "Example format",
    "status": "draft"
  },
  "action": {
    "$id": "https://api.sb/kilnbakery.com/actions/action_1",
    "operation": "Post.withdraw",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/kilnbakery.com/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const post = await $.Post.withdraw({ post: 'post_1', reason: 'Example reason' })
```

**CLI**

```bash
npx startup-builder do Post.withdraw --json '{"post":"post_1","reason":"Example reason"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Post.withdraw({ post: 'post_1', reason: 'Example reason' })"
  }
}
```