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 2025-06-16 UTC."],[[["\u003cp\u003eThis page details how to stop a running instance, which may be automatically recreated based on version scaling settings.\u003c/p\u003e\n"],["\u003cp\u003eStopping all instances in a version can be achieved by setting the version's serving status to \u003ccode\u003eSTOPPED\u003c/code\u003e using the \u003ccode\u003eapps.services.versions.patch\u003c/code\u003e method, ensuring instances are not recreated.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request method for stopping an instance is \u003ccode\u003eDELETE\u003c/code\u003e, using a specific URL pattern that incorporates gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to delete an instance requires the \u003ccode\u003eappengine.instances.delete\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eA successful request results in a response body that contains an \u003ccode\u003eOperation\u003c/code\u003e instance, and the request body itself must be empty.\u003c/p\u003e\n"]]],[],null,[]]