PMDF User's Guide
OpenVMS Edition


Previous Next Contents Index


DELETE

Delete one or more messages.

Syntax

DELETE [message-number[,...]]

Qualifiers Defaults
/ALL None
/CONFIRM /NOCONFIRM
/MARKED None
/READ None
/REPLIED None

Parameters

message-number[,...]

Optional list of integers specifying which messages to delete. Ranges are permitted (e.g., 5-7).

Description

The DELETE command will delete one or more of the currently selected messages. If the optional message-number parameter is omitted, then only the last message read will be deleted. When the /ALL qualifier is specified, all currently selected messages are deleted.

The message numbers are those shown in the directory listing (leftmost column) and on the top of the screen when the message is displayed.

Deleted messages are moved to the wastebasket folder of the currently open mail file. Should you accidentally delete the wrong messages, move to the wastebasket folder with any of the commands SELECT, DIRECTORY, or SET FOLDER, and then use the MOVE command to move the messages back out of that folder. Use the PURGE command to delete messages from the wastebasket folder.


Qualifiers

/ALL

Delete all currently selected messages. Cannot be used in conjunction with /MARKED, /NOMARKED, /READ, /NOREAD, /REPLIED, or /NOREPLIED.

/CONFIRM

/NOCONFIRM (default)

When /CONFIRM is specified, you will be prompted to confirm the deletion of each message.

/MARKED

/NOMARKED

Specify /MARK to delete all currently selected messages which are marked; specify /NOMARK to delete all currently selected messages which are not marked.

/READ

/NOREAD

Specify /READ to delete all currently selected messages which have been read; specify /NOREAD to delete all currently selected unread messages.

/REPLIED

/NOREPLIED

Specify /REPLIED to delete all currently selected messages which have been replied to; specify /NOREPLIED to delete all currently selected messages which have not been replied to.

Examples

#1

EMAIL> DIRECTORY
                                                                      MAIL 
 # From              Date         Subject 
 
 1 BOB@EXAMPLE.COM   16-JAN-2012  Trek spoof 
 2 BOB@EXAMPLE.COM   16-JAN-2012  The Simpsons 
 3 nsb@thumper.bellc 17-JAN-2012  Please check this out 
 4 sau@sleepy.bellco 17-JAN-2012  A Multi-media test 
 5 nsb@sigurd.innoso 17-JAN-2012  How MIME looks in AMS (MIME format) 
 6 moore@cs.utk.edu  17-JAN-2012  RE: New richtext generation -- opinions? 
 7 bob@panda.com     17-JAN-2012  RE: more content-charset stuff 
 8 ccrk@media-lab.mi 17-JAN-2012  RE: a response to MIME 
 9 sue@CAC.Washingto 17-JAN-2012  RE: audio mail 
10 sau@sleepy.bellco 17-JAN-2012  RE: your multipart stuff 
11 sau@sleepy.bellco 17-JAN-2012  A picture 
12 nsb@thumper.bellc 17-JAN-2012  Testing Multipart messaging 
 
 
EMAIL> DELETE 3-6,1,12
EMAIL> DIRECTORY
 
                                                                      MAIL 
 # From              Date         Subject 
 
 1 (deleted) 
 2 BOB@EXAMPLE.COM   16-JAN-2012  The Simpsons 
 3 (deleted) 
 4 (deleted) 
 5 (deleted) 
 6 (deleted) 
 7 bob@panda.com     17-JAN-2012  RE: more content-charset stuff 
 8 ccrk@media-lab.mi 17-JAN-2012  RE: a response to MIME 
 9 sue@CAC.Washingto 17-JAN-2012  RE: audio mail 
10 sau@sleepy.bellco 17-JAN-2012  RE: your multipart stuff 
11 sau@sleepy.bellco 17-JAN-2012  A picture 
12 (deleted) 
 
EMAIL>
      

This example illustrates how to delete messages 1, 3, 4, 5, 6, and 12.

#2

EMAIL> DIRECTORY WASTEBASKET
                                                               WASTEBASKET 
 # From              Date         Subject 
 
 1 BOB@EXAMPLE.COM   16-JAN-2012  Trek spoof 
 2 nsb@thumper.bellc 17-JAN-2012  Please check this out 
 3 sau@sleepy.bellco 17-JAN-2012  A Multi-media test 
 4 nsb@sigurd.innoso 17-JAN-2012  How MIME looks in AMS (MIME format) 
 5 moore@cs.utk.edu  17-JAN-2012  RE: New richtext generation -- opinions? 
 6 nsb@thumper.bellc 17-JAN-2012  Testing Multipart messaging 
 
EMAIL>
      

This example is a continuation of the previous one. Here the DIRECTORY WASTEBASKET command is used to select the wastebasket folder where the previously deleted messages now resided. They can be moved out of the wastebasket folder with the MOVE command or irrevocably deleted with the PURGE command.


Previous Next Contents Index