PMDF System Manager's Guide


Previous Contents Index


delete

Delete one or more messages from the channel queue directory.

Syntax

delete [message-id[,...]]

Command Qualifiers Defaults
-all -noall
-channel=name None
-confirm -noconfirm
-log -log

Parameters

message-id[,...]

A comma separated list of one or more message identification number or numbers shown by a previous directory command. Ranges are allowed.

Description

The delete command is used to delete one or more messages from the channel queue directories. The messages to be deleted are specified by their message identification numbers shown by the most recent directory command. That number appears in the leftmost column of the directory command listing. Ambiguous message numbers must be qualified by the proper channel name with the -channel qualifier.

Note that the delete command irrevocably deletes each message it is instructed to delete: the messages are not returned to their originators nor will any further attempts to be made to deliver them to their recipients. The messages are permanently deleted. Often, it is preferable to use the return command so as to return the message to its originator, (e.g., bounce it back to the sender).


Qualifiers

-all

-noall (default)

Delete all messages shown by the last directory command. When used in conjunction with the -channel qualifier, only those messages shown by the last directory command for the specified channel will be deleted. Unless -noconfirm is specified with -all , you will be required to confirm any delete -all operation.

-channel=name

Specifies the name of the channel from which to delete messages. Wildcards are not permitted.

-confirm

-noconfirm (default)

When -confirm is specified, you will be prompted to confirm each message delete operation.

-log (default)

-nolog

Specifies whether informational messages for each message delete operation are generated.

EXAMPLES

In the following example, the directory command is used to list the messages in the local, l, channel. Then, the delete command is used to delete messages 1, 3, 20, 21, and 22. A range specification, 20-22, is used to specify message numbers 20, 21, and 22.


qm.maint> directory l
Fri, 15 Nov 2012 13:43:39 -0800 (PST) 
Data gathered from the queue directory tree 
 
Channel: l                        Size Queued since 
-------------------------------------------------------------- 
    1 ZZ01HNP17LSUWY9D4DNR.00        4 15-NOV-2012 01:10:23 
    2 ZZ01HNP1RP3B6G9D4DNR.00       10 15-NOV-2012 01:10:24 
    3 ZZ01HNP42MAMAI9D4DNR.00        3 15-NOV-2012 01:10:24 
    4 ZZ01HNP4MEWC8G9D4DNR.00        8 15-NOV-2012 06:18:57 
      ...
   24 ZZ01HNP90X63ZG9D4DNR.00        6 15-NOV-2012 13:21:14 
-------------------------------------------------------------- 
Total size:                        108 
 
24 total messages queued 
qm.maint> delete 1,3,20-22
%QM-I-DELETED, deleted the message file /pmdf/queue/l/ZZ01HNP17LSUWY9D4DNR.00 
%QM-I-DELETED, deleted the message file /pmdf/queue/l/ZZ01HNP42MAMAI9D4DNR.00 
%QM-I-DELETED, deleted the message file /pmdf/queue/l/ZZ01HNP76RTGHY9D4DNR.00 
%QM-I-DELETED, deleted the message file /pmdf/queue/l/ZZ01HNP82HTXYB9D4DNR.00 
%QM-I-DELETED, deleted the message file /pmdf/queue/l/ZZ01HNP83JPOCV9D4DNR.00 
qm.maint> 


Previous Next Contents Index