UiPath Documentation
activities
latest
false
Productivity activities

DeleteMail (IMAP)

Deletes an IMAP email message from the specified folder.

Deletes an IMAP email message from the specified folder.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

Syntax

void DeleteMail(
	MailMessage message,
	string fromFolder = ""
)
void DeleteMail(
	MailMessage message,
	string fromFolder = ""
)

Parameters

message MailMessage : The email message to be deleted.

fromFolder String (Optional) : The source folder containing the message. If empty, defaults to Inbox.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated