Delete a verification rule
Remove a verification allow/block rule.
Deletes the rule permanently — unlike bulk jobs, rules are hard-deleted, so there is no undo. Addresses the rule was forcing to valid or do_not_mail are probed normally on their next verification.
DELETE /v3/validate/rules/{ruleId}
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ruleId | string | Required | The rule id from GET /v3/validate/rules or the create response. |
Responses
| Status | Description |
|---|---|
200 | OK. { message: "Rule deleted successfully" }. |
401 | Missing or invalid API key. |
404 | No rule with that id on your account. |
Code examples
cURL
curl -X DELETE https://api.wemail.io/v3/validate/rules/{ruleId} \
-H "Authorization: Bearer afn_live_…"Node.js
const res = await fetch("https://api.wemail.io/v3/validate/rules/{ruleId}", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.WEMAIL_API_KEY}`,
},
});
const data = await res.json();Python
import os, requests
r = requests.delete(
"https://api.wemail.io/v3/validate/rules/{ruleId}",
headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()