Forked from jameshy/papertrail-remove-all-systems.sh
Created
October 31, 2017 13:24
-
-
Save th0th/43ac0ba024220195cdf5c4362c6a6f0e to your computer and use it in GitHub Desktop.
Remove all systems from papertrail
This file contains 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
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