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.
- From the command line:
gem install httparty
- Open
gist_cleaner.rb
in any editor and change the@username
and@password
values to your's. If you're using Github's 2-factor authentication, you'll need to create an application password and choose a single permission:gist -> Create gists
- From the command line:
ruby gist_cleaner.rb