mailpit unofficial
DELETE/api/v1/search

Delete messages by search

Delete all messages matching a search.

2 parameters
querystringrequired
Search query
tzstringoptional
[Timezone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used only for `before:` & `after:` searches (eg: "Pacific/Auckland").

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.