Skip to content

Instantly share code, notes, and snippets.

@macmartine
macmartine / delete_gists.rb
Created May 20, 2013 18:15
Deletes all of a users' gists
#!/usr/bin/env ruby
require 'json'
# Remove all gists from a user
# Must be run repeatedly, as one request returns a maximum of 30 results
# Feel free to alter this to keep making requests until there are no more gists,
# but for my purposes this was sufficient
username = "username"
password = "password"