# System programs: update, delete

URL: /code/mcp/system/records-update · Id: `page:code/mcp/system/records-update`

> The System Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for [System](/business/nouns/system), one group of [System programs](/code/mcp/system).

### System.update
Changes the given properties of a System. [Verb page](/business/nouns/system/update?interface=mcp).

```text
do: return await $.System.update(input)
```

Emits `System.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the System. |
| `job` | `string` | No | The one job it does. |

**Returns**

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

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

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.System.update({ id: 'system_uGWze2jvrp', job: 'Example job' })"
  }
}
```

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

```text
do: return await $.System.delete(input)
```

Emits `System.deleted`.

**Inputs**

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

**Returns**

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

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

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.System.delete({ id: 'system_uGWze2jvrp' })"
  }
}
```