Delete a message
Permanently deletes a message by its ID. Use this endpoint to delete a message through the Samva email API.
DELETE
Permanently deletes a message by its ID.
apiKeyheader
x-api-key<token>id*stringMatch
^msg_[0-9a-hjkmnp-tv-z]{16,24}$Success
application/json- response
success*booleanmessage*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.messages.remove({ "id": "example"});Example Response
{ "success": true, "message": "string"}