# Trash or delete a board

> DELETE /boards/{boardId}

Source: https://mockflow.com/developers/reference/boards/delete-board

**DELETE** `https://api.mockflow.com/v1/boards/{boardId}`  
Scopes: `boards:write`

**curl**

```bash
curl https://api.mockflow.com/v1/boards/brd_3f9e2a \
  -X DELETE \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/boards/brd_3f9e2a", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
  }
});

const data = await response.json();
```

**Python**

```python
import os, requests

response = requests.delete(
    "https://api.mockflow.com/v1/boards/brd_3f9e2a",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
)

response.raise_for_status()
data = response.json()
```

**204**

No body. Trashed, or deleted for good.

**409**

```json
{
  "error": {
    "code": "conflict",
    "message": "Basic without permanent=true, or the board is already in the trash.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#conflict"
  },
  "requestId": "req_45d49816999bac40"
}
```

**429**

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#rate_limited"
  },
  "requestId": "req_45d49816999bac40"
}
```

On Plus and Max the board goes to the trash for 30 days. Basic has no trash: the board is deleted for good, and the call insists on `?permanent=true` so that cannot happen by accident. `?permanent=true` also empties a board out of the trash on any plan.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. The key needs `boards:write` scope. Create and manage keys in the [developer console](/developers/console/); what each scope unlocks is on the [scopes page](/developers/concepts/scopes).

### Path parameters

- `boardId` (string, required)

### Query parameters

- `permanent` (boolean): Defaults to `false`.

### Response

- `No body`: Trashed, or deleted for good.

### Errors

- 409 `conflict`: Basic without permanent=true, or the board is already in the trash.
- 429 `rate_limited`: Too many requests.
