Help Center/ ModelArts/ API Reference/ Training Management/ Deleting a Training Experiment
Updated on 2026-07-24 GMT+08:00

Deleting a Training Experiment

Function

This API is used to delete a created training experiment.

This API is used when you need to delete a specified training experiment when the training experiment is complete, the configuration is incorrect, or resources need to be cleared. Before using this API, ensure that the training experiment exists and you have the required permission. After the deletion, the training experiment is permanently removed, and related configurations and resources are cleared. If the training experiment does not exist or you do not have the required permission, the API will return an error message.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

DELETE /v2/{project_id}/training-experiments/{experiment_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition: Project ID. For details, see Obtaining a Project ID and Name.

Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed.

Range: N/A

Default Value: N/A

experiment_id

Yes

String

Definition: Experiment ID. The ID is automatically generated and returned when a training experiment is created.

Constraints: N/A

Range: N/A

Default Value: N/A

Request Parameters

None

Response Parameters

Status code: 202

No Content

None

Example Requests

DELETE https://endpoint/v2/{project_id}/training-experiments/653fce34-55b6-41db-99d4-1bdd9decd46b

Example Responses

Status code: 202

No Content

null

Status Codes

Status Code

Description

202

No Content

Error Codes

See Error Codes.