Internet Direct (Indy) Version 9.0.1 Beta
TIdPOP3.Delete
Marks a message for deletion on the POP3 server.

function Delete(const MsgNum: Integer): Boolean;
Parameters
const MsgNum: Integer
Message number to be removed.

Returns
Boolean - True when the result number is wsOK.

Description
Delete is a Boolean function that marks a message on the POP3 server for deletion using the message number specified in MsgNum. If a non-existent message number is used, an exception is raised. Delete uses the POP DELE command to mark the indicated message number for deletion. Messages marked for deletion on the POP3 server will be physically removed when Disconnect is called.