Deletes a migration task.
Operation description
- To delete a migration task, you must have the permission on mgw:DeleteImportJob.
- The operation to delete a migration task is asynchronous. The migration task remains in the Deleting state until it is deleted.
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
DELETE /job/{jobName} HTTP/1.1
Host: userid.cn-hangzhou.mgw.aliyuncs.com
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
forceDelete | string | No | Specifies whether to force delete the subtask. If the task has subtasks and you set this parameter to true, the task and its subtasks are forcibly deleted. If this parameter is set to false, the task and its subtasks fail to be deleted. | true |
jobName | string | Yes | The task name. | test_job_name |
Response parameters
Examples
Sample success responses
JSON
format
{}
XML
format
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root/>
Error codes
For a list of error codes, visit the Service error codes.