doc-exports/docs/modelarts/api-ref/modelarts_03_0089.html
Lai, Weijian 2f0818cf3d ModelArts API 22.3.0 version-20240311
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-04-05 09:35:42 +00:00

4.8 KiB

Deleting a Service

Function

This API is used to delete a service. You can delete your own services only.

URI

DELETE /v1/{project_id}/services/{service_id}
Table 1 describes the required parameters.
Table 1 Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name.

service_id

Yes

String

Service ID. If you want to delete multiple services in batches, use commas (,) to separate multiple service_id values.

Request Body

None

Response Body

None

Samples

The following shows how to delete the model service whose ID is xxxxxx.

  • Sample request
    DELETE    https://endpoint/v1/{project_id}/services/xxxxxx
  • Sample response
    {}

Status Code

For details about the status code, see Table 1.