Skip to content

IMAP Delete

Type: imap-delete  ·  Package: SMTP / IMAP Email Activities v1.0.0

Deletes an email from the IMAP server. By default it moves it to trash (recoverable); with permanent = true it deletes it immediately.

Starting mailId (from IMAP Read), delete the email. If permanent = false (default), move it to the trash; if true, it permanently deletes it (expunges).

ParameterEditorDescription
hosttextServidor IMAP.
usernametextUser.
passwordcredencialPassword or App Password. Use = credential(...).
mailIdtextMail UID (of correo.Id).
ParameterEditorDescription
portnumberPuerto IMAP. Por defecto 993.
foldertextFolder. By default INBOX.
permanentbooleantrue = immediate delete; false = to trash (default).
securitylistCifrado: auto · none · ssl (def.) · starttls.
IMAP Delete host = "imap.gmail.com" username = = credential("bot")["user"] password = = credential("bot").ToPlainText() mailId = = correo.Id