You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Cloud assistant
DeleteCommand - Deletes custom commands
Copy page
Download PDF
DeleteCommand - Deletes custom commands
Call the DeleteCommand operation to delete a custom command.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: DeleteCommand​
The action that you want to perform. Value: DeleteCommand.​
​
Version string required Sample value: 2020-04-01​
The version of the API. Valid value: 2020-04-01.​
​
CommandId string required Sample value: cmd-4302d02424c5c8e10281e3a31****​
The custom command ID. You can call the DescribeCommands operation to query and obtain custom command IDs.​
​
​
​
Response parameters​
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure.​
CommandId string Sample value: cmd-4302d02424c5c8e10281e3a31****​
The custom command ID.​
​
​
​
Sample request​
​
GET /?Action=DeleteCommand&Version=2020-04-01&CommandId=cmd-ydckta****HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
Service: ecs​
​
Sample response​
​
{​
"ResponseMetadata":{​
"RequestId":"2023082415303301022514515207C4****",​
"Action":"DeleteCommand",​
"Version":"2020-04-01",​
"Service":"ecs",​
"Region":"cn-beijing"​
},​
"Result":{​
"CommandId":"cmd-ydckta****"​
}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
MissingParameter.AccountId​
The required parameter AccountId is not supplied.​
The user ID cannot be empty.​
400​
MissingParameter.CommandId​
The required parameter CommandId is not supplied.​
The command ID cannot be empty.​
404​
InvalidCommand.NotFound​
The specified Command does not exist.​
The specified command does not exist.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
​
Last updated: 2026.04.17 10:57:33