mailpit unofficial
DELETE/api/v1/messages

Delete messages

Delete individual or all messages. If no IDs are provided then all messages are deleted.

1 body field

Delete request

IDsarray<string>optional
Array of message database IDs

2 status codes
200Plain text "ok" response
400Server error will return with a 400 status code with the error message in the body

Error handling

A 400 is returned: Server error will return with a 400 status code with the error message in the body.