Skip to content

Instantly share code, notes, and snippets.

@pen-pal
Created March 26, 2025 06:23
Show Gist options
  • Save pen-pal/926765839a940e2a614993aa70495475 to your computer and use it in GitHub Desktop.
Save pen-pal/926765839a940e2a614993aa70495475 to your computer and use it in GitHub Desktop.
force delete all the secrets from secrets manager without recovery
aws secretsmanager list-secrets --query "SecretList[].Name" --output text |xargs |tr ' ' '\n' | xargs -I {} aws secretsmanager delete-secret --secret-id {} --force-delete-without-recovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment