JavaScript SDK: swarmhit.emailAccounts.delete(emailAccountId)
Remove the mailbox from the workspace: its email threads go with it, it leaves every campaign pool, and leads it was emailing move to the remaining mailboxes. Its threads are deleted. Connecting the same address again within the restore window (15 days by default, set by Swarmhit) brings it back to its campaigns, its leads and its settings, under a new id with restoredFrom set; after the window it comes back as a new mailbox. Needs the email channel enabled for the workspace (403 otherwise). A mailbox bought through Swarmhit (managed set) is never removed this way: 409 with code: managed-mailbox; cancel it with POST /email-accounts/{id}/cancel-managed instead. A mailbox on warmup leaves its warmup service first: when that service cannot be reached, nothing is removed and the call answers 503 with code: warmup-release-failed; send it again a few minutes later.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/email-accounts/string"{ "data": { "ok": true }}