Remove a mailbox
This request is used for deleting a mailbox on a domain.
The mailbox can be specified using the email address or the mailbox ID. You can get the ID in the response to the Get the list of mailboxes request.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/email/del
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
&(login=<email address or username for mailbox>|uid=<mailbox ID>)
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. The request should only pass one of the parameters: |
uid | Integer | Mailbox ID. You can get the ID value in the response to the Get the list of mailboxes request. The request should only pass one of the parameters: |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. The request should only pass one of the parameters: |
uid | Integer | Mailbox ID. You can get the ID value in the response to the Get the list of mailboxes request. The request should only pass one of the parameters: |
POST /api2/registrar/email/del
Host: pddimp.yandex.ru
PddToken: <PDD token>
Authorization: OAuth <OAuth token>
...
domain=<domain name>
&(login=<email address or username for mailbox>|uid=<mailbox ID>)
Headers:
Name | Description |
---|---|
PddToken | |
Authorization |
Name | Description |
---|---|
PddToken | |
Authorization |
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. The request should only pass one of the parameters: |
uid | Integer | Mailbox ID. You can get the ID value in the response to the Get the list of mailboxes request. The request should only pass one of the parameters: |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. The request should only pass one of the parameters: |
uid | Integer | Mailbox ID. You can get the ID value in the response to the Get the list of mailboxes request. The request should only pass one of the parameters: |
Request example
POST /api2/admin/email/del HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com&uid=123456789
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com&uid=123456789' 'https://pddimp.yandex.ru/api2/admin/email/del'
POST /api2/admin/email/del HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000
...
domain=domain.com&uid=123456789
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -H 'Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000' -d 'domain=domain.com&uid=123456789' 'https://pddimp.yandex.ru/api2/admin/email/del'
Response structure
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
login | String | Email address of the mailbox. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
login | String | Email address of the mailbox. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|