Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Modules, images & timers

Delete a module

DELETE/v1/template-modules/{id}

Delete a module. Templates that inserted it keep their copy.

Requires a full-access live key; test keys get 403 test_key_restricted.

Path parameters

idstring (UUID)required
Module id.

Errors

restricted_api_keyHTTP 403
test_key_restrictedHTTP 403
test-mode keys can send test email and read, not change the account: use a live key
not_foundHTTP 404
module not found
DELETE/v1/template-modules/{id}
curl -X DELETE 'https://zapsmtp.xyz/v1/template-modules/019a1f61-4e5f-7a60-8b71-8c9d0e1f2a3b' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "template_module",
  "id": "019a1f61-4e5f-7a60-8b71-8c9d0e1f2a3b",
  "deleted": true
}