Method: projects.locations.services.delete

Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.

HTTP request

DELETE https://{endpoint}/v2/{name}

Where {endpoint} is one of the supported service endpoints.

Path parameters

Parameters
name

string

Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service} It takes the form projects/{project}/locations/{location}/services/{service}.

Query parameters

Parameters
validateOnly

boolean

Indicates that the request should be validated without actually deleting any resources.

etag

string

A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.