Skip to content

credctl reset

Terminal window
credctl reset [flags]

credctl reset tears down all cloud infrastructure created by credctl and removes the local ~/.credctl directory. This is a destructive operation intended for starting fresh or cleaning up after testing.

AWS:

  • CloudFormation stack (credctl-infra)
  • IAM role (detaches all policies first)
  • IAM OIDC provider
  • S3 OIDC bucket

GCP:

  • Workload Identity Pool (cascades to providers and bindings)
  • GCS OIDC bucket
  • GCP credential config file

Local:

  • ~/.credctl/ directory (config, public key, OIDC documents)
  • The Secure Enclave private key — macOS manages its lifecycle. Running credctl init after reset will create a new key pair.
FlagTypeDefaultDescription
--forceboolfalseSkip the confirmation prompt.
Terminal window
credctl reset
This will delete all credctl config and tear down cloud resources. Continue? [y/N] y
Deleting CloudFormation stack 'credctl-infra'...
Cleaning up IAM role 'credctl-device-role'...
Deleting IAM OIDC provider...
Deleting Workload Identity Pool 'credctl-pool'...
Deleting GCS bucket 'credctl-oidc-my-project'...
Removing ~/.credctl...
Reset complete.
Terminal window
credctl reset --force
CodeMeaning
0Reset completed (warnings for individual resource deletion failures are non-fatal)
1Error (could not read config or remove local directory)