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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-05-23 UTC."],[[["This page details how to stop a running instance, which may be automatically recreated based on version scaling settings."],["Stopping all instances in a version can be achieved by setting the version's serving status to `STOPPED` using the `apps.services.versions.patch` method, ensuring instances are not recreated."],["The HTTP request method for stopping an instance is `DELETE`, using a specific URL pattern that incorporates gRPC Transcoding syntax."],["Authorization to delete an instance requires the `appengine.instances.delete` IAM permission and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."],["A successful request results in a response body that contains an `Operation` instance, and the request body itself must be empty."]]],[]]