This script will permanently delete all your private Gists, so proceed with caution. It's handy for when you've built up a lot of cruft when sharing snippets. This will give you a nice clean slate to work with.
This is a slight tweak (aka, a complete rip of) Trevor's original Gist.
gem install httparty
- Change the @username and @password values to your's. If you're using Github 2-factor authentication, you'll need to create an application password for this.
- From the command line, run
ruby gist_cleaner.rb