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

ParameterTypeRequiredDescription
ruleIdstringRequiredThe rule id from GET /v3/validate/rules or the create response.

Responses

StatusDescription
200OK. { message: "Rule deleted successfully" }.
401Missing or invalid API key.
404No 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()