activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity activities

Last updated Mar 13, 2026

DeleteEmail

Deletes the given mail.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Overloads

OverloadDescription
DeleteEmail(IMail, Boolean)Deletes the given mail.
DeleteEmail(String, Boolean)Deletes the email with the given messageId.

DeleteEmail(IMail, Boolean)

Deletes the given mail.

public void DeleteEmail(
	IMail mail,
	bool deletePermanently = false
)
public void DeleteEmail(
	IMail mail,
	bool deletePermanently = false
)

mail IMail : The email that should be deleted.

deletePermanently Boolean (Optional) : If the email should be deleted permanently. Optional, default value is false.

DeleteEmail(String, Boolean)

Deletes the email with the given messageId.

public void DeleteEmail(
	string messageId,
	bool deletePermanently = false
)
public void DeleteEmail(
	string messageId,
	bool deletePermanently = false
)

messageId String : The ID of the email that should be deleted.

deletePermanently Boolean (Optional) : If the email should be deleted permanently. Optional, default value is false.

  • Overloads
  • DeleteEmail(IMail, Boolean)
  • DeleteEmail(String, Boolean)

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated