DeleteRobots

Updated at:

Description: Deletes multiple robots in a batch.

Endpoint: rpa/openapi/raas/resource/DeleteRobots

Method: POST

Usage notes:

  • When a robot is successfully deleted:

    • Its management information is deleted, which terminates any running or pending tasks and automatically releases its associated licenses.

    • This operation does not affect the underlying cloud resource.

  • The response details the deletion status of each robot.

Limitations:

Important

For API call limits, see Usage Limits.

Request parameters:

Parameter

Type

Required

Example

Description

RobotIds

Array of String. Serialization method: simple.

Yes

["657963 ****** 0D178CAC2FCBD5BD0B4EC", "11DC81 ****** 4E463B1E538436035653"]

A list of robot IDs. You can specify up to 10 robot IDs per request. To delete more than 10 robots, make multiple requests.

Response parameters:

For information about common response parameters, see the general response structure documentation. The following table describes the parameters in the data object.

Parameter

Type

Example

Description

RobotId

String

65796333 ****** 178CAC2FCBD5BD0B4EC

The robot ID.

CaseResult

Object. Serialized in JSON format.

{

"code": "36301",

"msgCode": "raas.robot.robotNotExist",

"msg": "The robot does not exist."

}

The operation result for the specific robot.

The CaseResult object contains the following parameters:

Parameter

Type

Example

Description

code

Integer

36301

The result code.

msgCode

String

raas.robot.robotNotExist

A brief description of the result.

msg

String

The robot does not exist.

A human-readable description of the result.

Request example:

https://console-rpa.aliyun.com/rpa/openapi/raas/resource/DeleteRobots?
&RobotIds=%5B6579633385B0D178CAC2FCBD5BD0B4EC%5D
&CommonRequestParameters

Response example:

{
	"requestId": "e7762fbe-****-****-****-72812210f0a3",
	"success": true,
	"code": 0,
	"msg": "Success",
	"msgCode": "result.success",
	"data": [{
		"RobotId": "657963338******8CAC2FCBD5BD0B4EC",
		"CaseResult": {
			"code": 0,
			"msgCode": "result.success",
			"msg": "Success"
		}
	}],
	"pager": null,
	"instanceId": null
}