UiPath Documentation
activities
latest
false
Productivity activities

DeleteMailAsync (IMAP)

Asynchronously deletes an IMAP email message from the specified folder.

Asynchronously 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

Task DeleteMailAsync(
	MailMessage message,
	string fromFolder = "",
	CancellationToken token = default
)
Task DeleteMailAsync(
	MailMessage message,
	string fromFolder = "",
	CancellationToken token = default
)

Parameters

message MailMessage : The email message to be deleted.

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

token CancellationToken (Optional) : The cancellation token to cancel operation.

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