grafana-util docs

grafana-util-alert-delete.1

Browser-readable rendering of a generated roff manpage.

This page renders the generated roff manpage into readable HTML for browser use. For richer per-subcommand detail, prefer the command-reference pages.

NAME

grafana-util-alert-delete - Delete one explicit alert resource identity.

SYNOPSIS

grafana-util alert delete [OPTIONS]

DESCRIPTION

Delete one explicit alert resource identity.

  • Remove a single rule, contact point, mute timing, policy tree, or template by identity.
  • Reset the managed notification policy tree only when you intend to allow it.

BEFORE / AFTER

  • Before: clean up a resource manually through the UI and hope you target the right object.
  • After: delete exactly one named alert resource by kind and identity.

COMMON OPTIONS

  • --kind selects the resource kind to delete.
  • --identity provides the explicit resource identity.
  • --allow-policy-reset permits policy-tree reset.
  • --output-format renders delete preview or execution output as text or json.

SUCCESS CRITERIA

  • The target kind and identity are the only things affected.
  • A preview or execution result clearly shows the resource you meant to remove.
  • Policy-tree resets only happen when --allow-policy-reset is present.

FAILURE CHECKS

  • Confirm the kind matches the identity you intend to remove.
  • Check the org/profile context before deleting if the resource is not where you expect.
  • If you are touching the policy tree, make sure --allow-policy-reset is present and intentional.

EXAMPLES

Delete one explicit alert resource identity.

grafana-util alert delete --kind rule --identity cpu-main

SEE ALSO

grafana-util(1), grafana-util-alert(1)