All Products
Search
Document Center

Data Online Migration:DeleteJob

Last Updated:Jan 16, 2025

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

ParameterTypeRequiredDescriptionExample
forceDeletestringNo

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
jobNamestringYes

The task name.

test_job_name

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

XMLformat

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root/>

Error codes

For a list of error codes, visit the Service error codes.