Method: apps.services.versions.instances.delete

Stops a running instance.

The instance might be automatically recreated based on the scaling settings of the version. For more information, see "How Instances are Managed" (standard environment | flexible environment).

To ensure that instances are not re-created and avoid getting billed, you can stop all instances within the target version by changing the serving status of the version to STOPPED with the apps.services.versions.patch method.

HTTP request

DELETE https://appengine.googleapis.com/v1beta/{name=apps/*/services/*/versions/*/instances/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.

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

  • appengine.instances.delete

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.