InternetMail.DeleteMailbox

Syntax:

DeleteMailbox(<Name>)

Parameters:

<Name> (required)

Type: String.
Name of mail box. Can contain a hierarchy. The character available using the DelimeterChar property is used as separator. In most cases it is the '/' character.

Description:

Deletes the specified IMAP mail box with all its content.
The delimeter character for mail boxes hierarchy that is used by the current mail server, is available using the DelimeterChar property.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

Intended for using only for connection set by the IMAP protocol.

Example:

Mail.DeleteMailbox("inbox/maibox1/maibox2");

See also:

InternetMail, property DelimeterChar

    

1C:Enterprise Developer's Community