---
title: "ktm dashboards remove-widget"
description: "Learn how to use the ktm dashboards remove-widget command to delete a specific widget from a dashboard by its ID via the CLI."
sidebarTitle: "remove-widget"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Remove a widget from a dashboard by ID

## Usage

```bash
ktm dashboards remove-widget <uid> <widget-id> [flags]
```

## Examples

```bash
# Remove widget
ktm dashboards remove-widget abc123 RandomID-a1b2c3d4e5f6
```

## Arguments

| Argument | Required |
| --- | --- |
| `uid` | Yes |
| `widget-id` | Yes |

## Related

- [`ktm dashboards`](/cli/commands/dashboards)

<Note>
  Global flags (`--output`, `--debug`, `--host`, …) apply to every command. See the [command reference overview](/cli/commands/overview).
</Note>

## What's next?

<Columns cols={2}>
  <Card title="All commands" icon="terminal" href="/cli/commands/overview">
    Browse the full CLI reference.
  </Card>
  <Card title="Get started" icon="rocket" href="/cli/getting-started">
    Install the CLI and authenticate.
  </Card>
</Columns>
