---
title: "DELETE /v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}"
method: DELETE
path: "/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}"
tags: ["apps"]
---

# DELETE /v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}

`DELETE /v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}`

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 (https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) | flexible environment (https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed)).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 (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/patch) method.

## Path parameters

- `appsId` string, required
- `servicesId` string, required
- `versionsId` string, required
- `instancesId` string, required

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/appengine.md) · [All operations](https://skmtc.dev/google/apis/appengine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/appengine/revisions/ee6b3d5f5200/schema)
