Delete email account

Permanently delete an email account. All emails in the mailbox will be erased.

Path Parameters

accountId integer · min: 1 required Example

Unique account identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
email string required
domain string required

Responses

200
success boolean
timestamp string
requestId string
data object
500
error string
message string
code string
timestamp string
requestId string
DELETE https://cloud.hostup.se/api/hosting/{accountId}/email-accounts
For AI assistants
cURL
curl -X DELETE "https://cloud.hostup.se/api/hosting/17328/email-accounts" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "accountId": "string",
    "cpanelUsername": "string",
    "email": "string",
    "deleted": true
  }
}
Request Body
{
  "email": "string",
  "domain": "string"
}