Method: projects.locations.services.delete

Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.

HTTP request

DELETE https://run.googleapis.com/v1alpha1/{name}

Path parameters

Parameters
name

string

The name of the service being deleted. If needed, replace {namespace_id} with the project ID. It takes the form projects/{project_id}/locations/{location_id}/services/{service_id}.

Authorization requires the following Google IAM permission on the specified resource name:

  • run.services.delete

Query parameters

Parameters
orphanDependents

boolean

Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.

propagationPolicy

string

Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information.

kind

string

Cloud Run currently ignores this parameter.

apiVersion

string

Cloud Run currently ignores this parameter.

Request body

The request body must be empty.

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...