grafana-util docs

dashboard delete

What this page covers

Delete live dashboards by UID or folder path.

When to open this page

  • Use this when you need to remove one dashboard, a folder subtree, or a subtree plus the matched folders themselves.

Who this page is for

Best for SREs, Grafana operators, and responders working with dashboard inventory, migration, inspection, or screenshots.

Purpose

Delete live dashboards by UID or folder path.

When to use

Use this when you need to remove one dashboard, a folder subtree, or a subtree plus the matched folders themselves.

Key flags

  • --uid: delete one dashboard by UID.
  • --path: delete dashboards under one folder subtree.
  • --delete-folders: with --path, also remove matched folders.
  • --yes: acknowledge the live delete.
  • --interactive: preview and confirm interactively.
  • --dry-run, --table, --json, --output-format, --no-header: preview output controls.

Examples

# Purpose: Delete live dashboards by UID or folder path.
grafana-util dashboard delete --url http://localhost:3000 --basic-user admin --basic-password admin --uid cpu-main --dry-run --json
# Purpose: Delete live dashboards by UID or folder path.
grafana-util dashboard delete --url http://localhost:3000 --basic-user admin --basic-password admin --path 'Platform / Infra' --yes