Technical data

REMOVE MAIL
REMOVE MAIL
Deletes mail messages from SMTP queues.
Without the user parameter, all messages from the user name that correspond to
your process’s user name are deleted.
Related commands: SEND MAIL, SHOW MAIL
Applies to: SMTP
Format
REMOVE MAIL [ user ]
[ /[NO]COPY=[directory]]
[ /[NO]CONFIRM ]
[ /ENTRY=n ]
Restrictions
Requires SYSPRV or BYPASS privilege for mail messages that are not yours.
Parameters
user
Optional. Default: All mail messages with your process’s user name.
Removes messages sent from the specified user name.
Qualifiers
/COPY=[directory]
/NOCOPY=[directory]
Optional. Default: Messages copied to the users default directory.
Copies messages to be deleted to the specified directory.
/NOCOPY: Messages are not copied.
/CONFIRM
/NOCONFIRM
Optional. Defaults:
With an entry number specified /NOCONFIRM
Without an entry number specified /CONFIRM
If you specify /CONFIRM, or if you omit an entry number, requests confirmation
before deleting each message. Respond to the CONFIRM: prompt by entering one
of the following:
Y to delete the mail message
N to retain the mail message
G to change to NO CONFIRMATION mode
If you specify the /NOCONFIRM qualifier or an entry, the operation is performed
without asking you to confirm the request.
Command Descriptions 2–79