--- /dev/null
+#
+# kill or delete a message
+#
+# Copyright (c) Dirk Koopman G1TLH
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+my @f = split /\s+/, $line;
+my $msgno;
+my @out;
+my @body;
+my $ref;
+
+for $msgno (@f) {
+ $ref = DXMsg::get($msgno);
+ if (!$ref) {
+ push @out, "Msg $msgno not found";
+ next;
+ }
+ if ($ref->private && $self->priv < 9 && $ref->to ne $ref->call) {
+ push @out, "Msg $msgno not available";
+ next;
+ }
+ $ref->del_msg;
+ push @out, "Message $msgno deleted";
+}
+
+return (1, @out);