This document explains how to view and apply idle resources recommendations for Persistent Disk volumes, IP addresses, and custom disk images.
Compute Engine helps you identify idle Persistent Disk volumes, IP addresses, and custom disk images, and provides recommendations to help you minimize waste and avoid unnecessary charges.
If you're interested in recommendations for idle virtual machine (VM) instances, then see View and apply idle VM recommendations.
Select the tab for how you plan to use the samples on this page:
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud initIf you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI.
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
For more information, see Authenticate for using REST in the Google Cloud authentication documentation.
There are no costs associated with using idle resources recommendations.
If a resource has not been attached to a VM or other resource for 15 days, then the Recommender classifies that resource as idle. For more information about the conditions to classify a resource as idle and the recommended actions, see the following table:
| Resource | Condition for resource to be classified as idle | Recommended action | Savings |
|---|---|---|---|
| Persistent Disk | All of the following must be true:
|
Delete | Save 100% of the cost of that disk. For more information, see Disk and image pricing. |
| Persistent Disk | All of the following must be true:
|
Create a snapshot of the Persistent Disk, and then delete it. |
Reduce the maintenance cost of that disk from 35% to 92%. For more
information, see Disk and image
pricing. |
| Custom image | All of the following must be true:
|
Delete | Save 100% of the cost of that image. For more information, see Disk and image pricing. |
| External IP address | The IP address hasn't been attached to any resource for at least 15 days. | Delete |
Save 100% of the cost of that IP address. For more information, see External IP address pricing. |
Idle resource recommendations begin 15 days after resource creation, and they are updated once every 24 hours.
To view recommendations about idle resources, use the gcloud CLI or REST.