UiPath Activities

The UiPath Activities Guide

Delete Exchange Mail Message


Deletes an Exchange email message.



  • MailMessage - The MailMessage object retrieved from the Get Exchange Mail Message that is to be deleted.


  • DeleteMode - Specifies the method of deleting the message. HardDelete - permanently deletes the message, SoftDelete - similar to sending the item to the Recycle Bin and then emptying it, MoveToDeletedItems - similar to sending the item to the Recycle Bin.


  • Server - The email server host that is to be used.
  • ExchangeVersion - Specifies the lowest version of the Exchange server that is used. The options displayed in this field range from the 2007 to the 2013 version. Please note that the version number indicates the lowest level of service you support. This means that if you have a 2016 exchange server, you can select the Exchange2013 option..
  • EmailAutodiscover - Searches automatically for an Exchange server by using an email address from that server. This works only if the Exchange server has Autodiscover enabled.


  • User - The username of the Exchange account used to delete the message.
  • Password - The password of the Exchange account used to delete the message.
  • Domain - The Active Directory domain to connect to.


  • DisplayName - The display name of the activity.
  • TimeoutMS - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).


  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Updated 2 years ago

Delete Exchange Mail Message

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.