# Delete IMAP Email

> Delete IMAP Email activity that deletes the given mail message using IMAP.

`UiPath.Mail.IMAP.Activities.GetIMAPMailMessages`

## Description

Deletes the given mail message using IMAP.

## Project compatibility

Windows | Cross-platform

## Configuration

* **Connection** - The connection established in Integration Service for the Mail connector.

* **The email to delete** - Deletes the given mail message using IMAP.

### Input

* **Source folder** - The folder name where the email is located.

### Connection details

* **Use Integration Service** - Whether to use an Integration Service connection or not. Default value is True. When set to false, the server connection fields are displayed.
* **Server** - The email server host to be used. This field supports `String` type input.
* **Port** - The port used to get the email message. This field supports `Int32` type input.
* **Use OAuth** - Indicates whether to use an OAuth2 access token instead of a password. By default, this option is not selected.
* **Email** - The email account used to get the message. This field supports `String` type input.
* **Password** - The password of the email account used to get the message. If Use OAuth is enabled, the value of this parameter must be an OAuth2 access token. This field supports `String` type input.
* **Secure password** - The password of the email account used, as a secure string. If **UseOAuth** is selected, the value of this parameter must be an OAuth2 access token.
* **Ignore CRL** - Indicates whether to ignore the Certificate Revocation List validation when connecting. Boolean value. Default is False.
* **Secure connection** - Specifies the SSL and/or TSL encryption to be used for the connection.
* **Client name** - Specifies a value for the Name property of the IMAP client implementation.
* **Client version** - Specifies a value for the Version property of the IMAP client implementation.
