Topic Path: Symbol Reference > Classes > TIdPOP3 Class > TIdPOP3 Methods > Delete Method
ContentsIndexHome
PreviousUpNext
TIdPOP3.Delete Method

Marks a message for deletion on the POP3 server.

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

Boolean - True when the result is wsOK.

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 SendCmd to execute the POP DELE command that marks the indicated message number for deletion. Messages marked for deletion on the POP3 server will be physically removed when Disconnect is called. Use Reset to clear all message deletion marks anytime prior to calling Disconnect

Delete returns True when the result for the operation, as indicated by LastCmdResult, contains the value ST_OK.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.