Skip to main content
DELETE
/
api
/
v1
/
email-accounts
/
{email_account_id}
curl -X DELETE "https://server.smartlead.ai/api/v1/email-accounts/123?api_key=YOUR_KEY"
{
  "ok": true,
  "message": "Email account deleted successfully!",
  "emailAccountId": 123
}
Deleting an email account removes it from all campaigns and deactivates warmup. This action cannot be undone. Ensure no active campaigns rely on this account before deletion.

Path Parameters

email_account_id
number
required
The email account ID to delete

Query Parameters

api_key
string
required
Your SmartLead API key
curl -X DELETE "https://server.smartlead.ai/api/v1/email-accounts/123?api_key=YOUR_KEY"

Response Codes

200
Success
Email account deleted successfully
401
Unauthorized
Invalid or missing API key
404
Not Found
Email account not found or you don’t have access to it
500
Internal Server Error
Server error occurred
{
  "ok": true,
  "message": "Email account deleted successfully!",
  "emailAccountId": 123
}

Deletion Behavior

When an email account is deleted:
  • Removed from all campaign associations
  • Warmup status set to INACTIVE with reason “Email account is deleted by user action”
  • Smart sender domain mappings are deleted
  • Account is soft-deleted (not permanently removed from database)
Before deleting an email account, ensure:
  • No active campaigns depend solely on this account
  • You have alternative email accounts configured
  • All scheduled emails from this account have been sent or rescheduled