---
title: "bookmark_delete: Delete a bookmark — PDF kit command — Kition"
description: "Delete a bookmark and the bookmarks under it. Undoable."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/bookmark_delete"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/bookmark_delete](https://developer.kition.ai/docs/kits/pdf/commands/bookmark_delete)

# bookmark_delete

**Delete a bookmark.** Delete a bookmark and the bookmarks under it. Undoable.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `path` | `integer[]` | yes | The bookmark: 1-based positions from the top level, e.g. [2, 1] = the first child of the second bookmark. |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "bookmark_delete", "params": { "path": <integer[]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. pdf_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": {
    "path": {
      "description": "The bookmark: 1-based positions from the top level, e.g. [2, 1] = the first child of the second bookmark.",
      "items": {
        "description": "(minimum 1)",
        "type": "integer"
      },
      "type": "array"
    }
  },
  "required": [
    "path"
  ],
  "type": "object"
}
```

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