Destroys an ApsaraDB for MongoDB instance.
Operation description
The instance must meet all of the following requirements:
-
A replica set or sharded cluster instance that uses local disks.
-
Uses subscription billing.
-
Has expired and is in the Locking state.
Warning Data cannot be restored after the instance is destroyed. Proceed with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DestroyInstance |
delete |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. Note
InstanceId and DBInstanceId are interchangeable. Specify either one. |
dds-bp147acd4783**** |
| DBInstanceId |
string |
No |
The instance ID. Note
InstanceId and DBInstanceId are interchangeable. Specify either one. |
dds-bp147acd4783**** |
| ClientToken |
string |
No |
The client token used to ensure idempotence. Must be unique across requests. ASCII characters only, up to 64 characters. |
ETnLKlblzczshOTUbOCz**** |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmyiu4ekp**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
65BDA532-28AF-4122-AA39-B382721E**** |
Examples
Success response
JSON format
{
"RequestId": "65BDA532-28AF-4122-AA39-B382721E****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ChargeTypeViolation | The operation is not permitted due to charge type of the instance. | The operation is not permitted due to charge type of the instance. |
| 400 | MissingDBInstanceId | DBInstanceId is mandatory for this action. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.