Browse docs
On this page

obi delete

Delete resources by name, or every object described in manifest files.

obi delete deletes the objects you name.

Shell
obi delete TYPE NAME [NAME...]
obi delete TYPE/NAME [TYPE/NAME...]
obi delete -f FILE

obi rm is the same command. Run obi delete with no type to see every type you can delete.

Examples

Shell
obi delete alert payments-errors
obi delete saved-search "Old errors" "Older errors"
obi delete alert/payments-errors dashboard/scratch
obi delete silence SILENCE_ID --alert payments-errors
obi delete -f observability.yaml       # every object the file describes

Deleting takes effect immediately and is not undone, so check the names first with obi get.

Flags

FlagMeaning
-f, --filename PATHDelete the object each manifest names, by its metadata.name.
-R, --recursiveWith a directory, read it recursively.
--PARENT NAMEFor a type that belongs to another, the parent, such as --alert.