Get Started
Portal api methods
Help

DELETE api/2.0/mail/folders/{folderid}/messages This function requires authentication

Description

Removes all the messages from the folder. Trash or Spam.

Parameters
Name Description Type Example
folderid
sent in url
Selected folder id. Trash - 4, Spam 5. number 1234
Example
DELETE api/2.0/mail/folders/1234/messages
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns