Deleting messages

Use various forms of the d subcommand to delete messages.

At your mailbox prompt, you can use the (d)elete subcommand in the ways shown in the following examples:

Item Description
d The current message is deleted.
dp or dt The current message is deleted and the next message is displayed. This also can be accomplished by including the set autoprint option in the .mailrc file, which will set the d subcommand to function like the dp or dt subcommand combination.
d 4 Deletes the specific message 4.
d 4-6 Deletes a range of messages 4 through 6.
d 2 6 8 Deletes messages 2, 6, and 8.