pop3.delete(options, identifier) Last updated: 01. May 2026

API only function

Deletes a single email message from POP3 server by identifier.

See also: Send mail from API function Sending forms by e-mail

Parameters

Name Type Description
options object

POP3 options object with hostname, port, useSsl, username and password.

identifier string

Mail identifier for message to delete (not number, but identifier).

Returns

Boolean, true if deleted successfully otherwise false.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
// Configure options
let options = {
    "hostname" : "serverhost",
    "port" : 110,
    "useSsl" : false,
    "username" : "login",
    "password" : "pass"
};

// Delete message by identifier
let result = pop3.delete(options, identifier);

// Return true if deleted
return result;