Updated on 2022-08-05 GMT+08:00

Deleting Migration Tasks in Batches

Function

This API is used to delete multiple migration tasks at a time.

You can delete a task only when the task status is READY, ABORT, FAIL, or SUCCESS.

URI

POST /v1/sms/tasks/delete

Request

Request parameters

For details about the request parameters, see Table 1.

Table 1 Request parameters

Parameter

Mandatory

Type

Description

ids

Yes

JSON array

Specifies the collection of IDs of all tasks to be deleted.

Response

N/A

Example

  • Example request
    { 
    "ids":["1","2","3"]
    }
  • Example response

    None

Status Codes

See Status Codes.

Error Codes

See Out-of-Date Error Codes.