Reference documentation and code samples for the Compute Engine v1 API enum StatefulPolicyPreservedStateDiskDevice.Types.AutoDelete.
These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eAutoDelete\u003c/code\u003e enum within the \u003ccode\u003eStatefulPolicyPreservedStateDiskDevice.Types\u003c/code\u003e of the Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAutoDelete\u003c/code\u003e enum controls whether stateful disks are deleted when no longer used by a group, and are not deleted during autohealing, update or instance recreate operations.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers a range of versions for \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e, from version 1.0.0 up to the latest version, 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThere are three possible values for the \u003ccode\u003eAutoDelete\u003c/code\u003e field: \u003ccode\u003eNever\u003c/code\u003e, \u003ccode\u003eOnPermanentInstanceDeletion\u003c/code\u003e, and \u003ccode\u003eUndefinedAutoDelete\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe stateful disks set to \u003ccode\u003eNever\u003c/code\u003e will not be deleted when no longer used by a group, whereas \u003ccode\u003eOnPermanentInstanceDeletion\u003c/code\u003e means it will be deleted upon the permanent deletion of the instance, and the last state \u003ccode\u003eUndefinedAutoDelete\u003c/code\u003e indicates that the field is not set.\u003c/p\u003e\n"]]],[],null,[]]