# Dashboard commands: update, delete

URL: /code/cli/dashboard/records-update · Id: `page:code/cli/dashboard/records-update`

> The Dashboard Verbs update, delete as CLI commands, with inputs, result, refusals and an example.

Reference for [Dashboard](/business/nouns/dashboard), one group of [Dashboard commands](/code/cli/dashboard).

### Dashboard.update
Changes the given properties of a Dashboard. [Verb page](/business/nouns/dashboard/update?interface=cli).

```text
npx startup-builder do Dashboard.update --json '<input>' [--try | --send | --do]
```

Emits `Dashboard.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Dashboard. |
| `scope` | `string` | No | What it views, such as a Studio, a Startup, a Team, or a Role. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `dashboard` | [Dashboard](/business/nouns/dashboard) | Yes | The Dashboard. |

**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. | None. |

**Example**

```bash
npx startup-builder do Dashboard.update --json '{"id":"dashboard_QL9I0ALqO4","scope":"Startup"}'
```

### Dashboard.delete
Deletes a Dashboard: a soft delete that keeps its history, undone by `Thing.restore`. [Verb page](/business/nouns/dashboard/delete?interface=cli).

```text
npx startup-builder do Dashboard.delete --json '<input>' [--try | --send | --do]
```

Emits `Dashboard.deleted`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Dashboard. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `dashboard` | [Dashboard](/business/nouns/dashboard) | Yes | The Dashboard. |

**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. | None. |

**Example**

```bash
npx startup-builder do Dashboard.delete --json '{"id":"dashboard_QL9I0ALqO4"}'
```