5 mogdelete -- Delete keys from a MogileFS installation
9 $ mogdelete --trackers=host --domain=foo --key="/hello.jpg"
15 =item --trackers=host1:7001,host2:7001
17 Use these MogileFS trackers to negotiate with.
19 =item --domain=<domain>
21 Set the MogileFS domain to use.
25 A key to delete. Can be an arbitrary string.
31 Dormando E<lt>L<dormando@rydia.net>E<gt>
35 Produces a slightly weird error if key does not exist.
39 Licensed for use and redistribution under the same terms as Perl itself.
49 my $util = MogileFS
::Utils
->new;
50 my $usage = "--trackers=host --domain=foo --key='/hello.jpg'";
51 my $c = $util->getopts($usage, 'key=s');
53 my $mogc = $util->client;
55 $mogc->delete($c->{key
});
57 die "Error deleting file: ", $mogc->errstr, "\n";