Zum Inhalt

tenax targets destroy

tenax targets destroy

Permanently delete a target whose BackupTarget is gone, with all its backups

Synopsis

Destroy deletes every backup, stream segment and record of a target from its stores. It is for targets whose BackupTarget was deleted on purpose: their backups stay in the store until they are destroyed. It is refused while a BackupTarget of that name exists, while a restore of it runs, and on read-only stores. It needs restorer-admin, the target typed as confirmation and a reason. The target disappears at once; the controller deletes its objects within minutes. It cannot be undone.

tenax targets destroy <namespace>/<target> [flags]

Examples

  tenax targets destroy republic-dev/postgres-payments --dry-run
  tenax targets destroy republic-dev/postgres-payments --reason "removed from Git"

Options

      --confirm string       the target as namespace/name, as confirmation (asked for when not given)
      --dry-run              only show what would be deleted
  -h, --help                 help for destroy
  -o, --output string        output format: table, json or yaml (default "table")
      --reason string        why (required, audited)
      --server tenax login   Tenax API URL (default: saved by tenax login, or $TENAX_SERVER)
      --timeout duration     how long --wait waits (default 30m0s)
      --token string         Access token (default: saved, or $TENAX_TOKEN)

Options inherited from parent commands

      --lang string   language of this run's output, for example es or es_MX (over TENAX_LANG and the configured language)

SEE ALSO

  • tenax targets - List targets with last backup, PITR window and health