This API is used to delete a model service. You can delete your own services only.
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
DELETE /v1/{project_id}/services/{service_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
service_id |
Yes |
String |
Service ID. To delete multiple services in a batch, use commas (,) to separate multiple service_id values. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API that is used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
None
DELETE https://endpoint/v1/{project_id}/services/xxxxxx The following shows how to delete the model service with ID **xxxxxx**.
Status code: 200
The service is deleted.
{ }
Status Code |
Description |
---|---|
200 |
The service is deleted. |
See Error Codes.