Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Created February 28, 2012 13:10
Show Gist options
  • Save mschmitt/1932491 to your computer and use it in GitHub Desktop.
Save mschmitt/1932491 to your computer and use it in GitHub Desktop.
Delete a pad from the default group in etherpad lite
#!/usr/bin/perl -w
use strict;
use diagnostics;
use LWP::Simple;
my $baseurl = 'http://127.0.0.1:9001/api/1/';
my $apikey = '***';
my $request_url = $baseurl.'deletePad?apikey='.$apikey.'&padID='.$ARGV[0];
print "$request_url\n";
print get($request_url)."\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment