🤬
master
ROOT /
REST-DELETE-mailbox.md
30 lines | ISO-8859-1 | 489 bytes

Back to REST API

Purge contents of mailbox.

URI

DELETE /api/v1/mailbox/{name}

Params

  • name - name of the mailbox to purge

Output

JSON encoded string "OK"

Example

Request: curl -i -H "Accept: application/json" -X DELETE https://cras.fyi/api/v1/mailbox/swaks

Response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Expires: -1
Content-Length: 5
Date: Tue, 15 Oct 2013 23:58:13 GMT

"OK"
Please wait...
Page is in error, reload to recover