Delete email inbox by id

Deletes email inbox using id.

requires the user to havemanage-email-inboxpermission.

URLRequires AuthHTTP Method

/api/v1/email-inbox/:_id

yes

DELETE

Path Variable

ArgumentExampleRequiredDescription

_id

60197e8ff82d6c83b96c53ff

Required

Email inbox id

Example Call

curl -L -X DELETE 'http://localhost:3000/api/v1/email-inbox/61717dd1066bc500096cb36d' \
-H 'X-User-Id: d26x6zSkaPSe5gCyy' \
-H 'X-Auth-Token: Zu-Z6eKzIIz7MCCRGeHi29bYkXZCJ4SxFC0JAasqm92'

Result

Success

{
    "_id": "61717dd1066bc500096cb36d",
    "success": true
}

Errors

The following error can occur upon the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

  • Permission: Requires the user to have manage-email-inbox permission for the request to be made.

  • Email Not Found: Triggered when the email entry with this _id is not found.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Change Log

VersionDescription

3.11.0-rc.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.