Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save th0th/43ac0ba024220195cdf5c4362c6a6f0e to your computer and use it in GitHub Desktop.
Save th0th/43ac0ba024220195cdf5c4362c6a6f0e to your computer and use it in GitHub Desktop.
Remove all systems from papertrail
curl -s -H "X-Papertrail-Token: API-TOKEN-HERE" https://papertrailapp.com/api/v1/systems.json | jq '.[] .name' | xargs -I {} -d '\n' sh -c 'papertrail-remove-system -s {}; echo deleted {}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment