Skip to content

rune delete

Terminal window
rune delete my-service
rune delete my-service --force --output json
Terminal window
rune delete service <name> # full form
rune delete list # list deletion operations
rune delete status <id> # inspect a specific deletion op
Terminal window
# Delete a service
rune delete api
# Force-delete (ignore "in use" errors)
rune delete api --force
# Delete a secret / configmap
rune delete secret db-credentials
rune delete config app-settings
# Delete a namespace (refuses if not empty unless --force)
rune delete namespace staging --force
# Watch a long-running deletion
rune delete list
rune delete status <id>
FlagDefaultNotes
-n, --namespacecontextTarget namespace.
--forcefalseSkip “in use” / “non-empty” checks.
--waittrueWait for deletion to complete.
--no-waitfalseReturn immediately with a deletion op ID.
--timeout5mWait timeout.
-o, --outputtabletable, json, yaml.

Deletion is staged through finalizers and worker tasks (see pkg/orchestrator/finalizers). For services, that means:

  1. Mark spec for deletion.
  2. Scale to 0.
  3. Run finalizers (deregister from discovery, cleanup networks, etc.).
  4. Remove the resource from the store.

You can interrogate any of those steps with rune delete status <id>.