#!/usr/bin/env ruby require './lib/media_wiki' if ARGV.length <1 raise "Syntax: delete_batch.rb " end rw = MediaWiki::Gateway.new(ARGV[0]) rw.list(ARGV[1]).each do |title| print "Deleting #{title}..." rw.delete(title) end print "Done."