Deletes a cloud assistant command.

Debugging

You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Name Type Required Example Description
CommandId String Yes c-4d34302d02424c5c8e10281e3a315a05

The ID of the command. You can call DescribeCommands to view all available command IDs.

RegionId String Yes cn-hangzhou

The ID of the region. You can call DescribeRegions to view the latest regions of Alibaba Cloud.

Action String No DeleteCommand

The operation that you want to perform. Set the value to DeleteCommand.

Response parameters

Name Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=DeleteCommand
&CommandId=c-4d34302d02424c5c8e10281e3a315a05
&RegionId=cn-hangzhou 
&<Common request parameters>

Successful response examples

XML format

<DeleteCommandResponse>
  <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
</DeleteCommandResponse>

JSON format

{
	"RequestId":"E69EF3CC-94CD-42E7-8926-F133B86387C0"
}

Error codes

HTTP status code Error code Error message Description
500 InternalError.Dispatch An error occurred when you dispatched the request. The error message returned when an unknown error occurs.
403 InvalidRegionId.NotFound Current region is not available. The error message returned when the specified region is unavailable.

View error codes