---
title: "element.delete: Delete — Board kit command — Kition"
description: "Removes the elements and everything inside frames and groups among them; connectors attached to them lose that end's binding."
canonical: "https://developer.kition.ai/docs/kits/board/commands/element.delete"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/element.delete](https://developer.kition.ai/docs/kits/board/commands/element.delete)

# element.delete

**Delete.** Removes the elements and everything inside frames and groups among them; connectors attached to them lose that end's binding.

- Kit: Board 0.1.0 (.kboard); reference: [Board kit commands](https://developer.kition.ai/docs/kits/board.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | `string[]` | yes | The elements; what is inside frames and groups goes with them |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "element.delete", "params": { "ids": <string[]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. board_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "ids": {
      "description": "The elements; what is inside frames and groups goes with them",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "ids"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
