• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. API Reference
  4. Service (Native Kubernetes APIs)
  5. Deleting a Service

Deleting a Service

Function

This API is used to delete a Service.

URI

DELETE /api/v1/namespaces/{namespace}/services/{name}

Table 1 describes the parameters of this API.

Table 1 Parameter description

Parameter

Mandatory

Description

pretty

No

If 'true', then the output is pretty printed.

namespace

Yes

Object name and auth scope, such as for teams and projects.

name

Yes

Name of the Service.

Request

N/A

Response

Response parameters:

For the description about response parameters, see Table 4.

Example response:

{ 
   "kind": "Status", 
   "apiVersion": "v1", 
   "metadata": {}, 
   "status": "Success", 
   "code": 200 
 }

Status Code

Table 2 describes the status code of this API.

Table 2 Status code

Status Code

Description

200

Delete a Service resource object successfully.

For the description about status codes, see section Status Codes.