# Keyword commands: update, delete

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

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

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

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

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

Emits `Keyword.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Keyword. |
| `phrase` | `string` | No | The words searched or asked. |
| `form` | `string` | No | One of `search` or `question`. |

**Returns**

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

**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 Keyword.update --json '{"id":"keyword_cEoeFM4Drs","form":"search"}'
```

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

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

Emits `Keyword.deleted`.

**Inputs**

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

**Returns**

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

**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 Keyword.delete --json '{"id":"keyword_cEoeFM4Drs"}'
```