- 
      
- 
        Save kjm0001/cbc7c39761f72a3376faee329745c45e to your computer and use it in GitHub Desktop. 
    Delete SSM parameters by path prefix
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | aws ssm get-parameters-by-path --path '/path/to/prams' --recursive \ | |
| | jq .Parameters[].Name \ | |
| | xargs -L1 -I'{}' aws ssm delete-parameter --name {} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
aws ssm get-parameters-by-path --path '/path/to/prams' --recursive \ | jq '.Parameters[].Name' \ | xargs -L1 -I'{}' aws ssm delete-parameter --name {}
(with '' on the jq command) worked for me