2 # Delete a bunch of volumes from a pool
4 require './bacula-backup-lib.pl';
6 &error_setup($text{'dvolumes_err'});
7 @d = split(/\0/, $in{'d'});
8 @d || &error($text{'dvolumes_enone'});
12 &sysprint($h->{'infh'}, "delete media volume=$d\n");
13 $rv = &wait_for($h->{'outfh'}, "Are you sure.*:");
15 &sysprint($h->{'infh'}, "yes\n");
18 &error(&text('dvolumes_ebacula', "<tt>$wait_for_input</tt>"));
23 &redirect("poolstatus_form.cgi?pool=$in{'pool'}");