Skip to content

Instantly share code, notes, and snippets.

@ojacques
Created November 22, 2022 18:10
Show Gist options
  • Save ojacques/d03cdd470cc2c97b0bd8336155cde166 to your computer and use it in GitHub Desktop.
Save ojacques/d03cdd470cc2c97b0bd8336155cde166 to your computer and use it in GitHub Desktop.
Delete SSM parameters starting with...

Delete all SSM parameters starting with /XYZ:

aws ssm get-parameters-by-path --path /XYZ --recursive --query 'Parameters[].[Name]' --output text | xargs -n1 -IParam aws ssm delete-parameter --name Param
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment