DeleteTask

Updated at:

Deletes a specified task.

Operation description

This operation requires DataWorks Basic Edition or a higher edition.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The ID of the task to delete. You can obtain the ID from the PagingInfo.Tasks[].Id field returned by the ListTasks operation.

1234

ProjectEnv

string

No

The workspace environment of the task. A value of Prod indicates the production environment, and a value of Dev indicates the development environment. Default value: Prod.

Valid values:

  • Prod :

    Production.

  • Dev :

    Development.

Prod

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

22C97E95-F023-56B5-8852-B1A77A17XXXX

Success

boolean

Indicates whether the specified task was deleted.

true

Examples

Success response

JSON format

{
  "RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX\n",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.