An illustration representing an idle Cloud SQL database causing unnecessary monthly cloud billing costs

Running a relational database in Google Cloud bills for provisioned capacity, not query volume. Consequently, an idle Cloud SQL instance generates the exact same hourly compute charges as a heavily loaded production database of the same machine tier. Teams often leave these databases running after migrations, proofs of concept, or application retirements. Because Cloud SQL bills by the second for active vCPUs and memory, forgotten databases quietly inflate monthly invoices. However, you cannot simply delete every quiet database you find. First, you must understand how Google flags idle resources, what charges remain when an instance stops, and how to safely decommission unneeded databases.

Key takeaways

  • Google Cloud’s native recommender evaluates primary instances older than 30 days to flag inactive databases.
  • Stopping an instance halts vCPU and RAM billing, but provisioned storage and static IPv4 charges continue.
  • Follow a 3-step cleanup process: verify with the owner that no jobs connect, stop or export and delete the database, and check later billing days to confirm compute charges cease.

How Google flags an idle Cloud SQL instance

Google Cloud runs an automated service called the Cloud SQL idle instance recommender (google.cloudsql.instance.IdleRecommender). Specifically, this native tool analyzes usage metrics for primary instances that are more than 30 days old. Over its observation window, the recommender tracks CPU utilization, memory usage, disk I/O operations, and storage growth. When all of these metrics remain below Google’s internal activity thresholds, the system marks the database as idle.

You can view these findings directly in the Google Cloud console under Active Assist, or query them using the gcloud recommender recommendations list command. Furthermore, you can pair these recommendations with the Google Cloud Billing export to BigQuery to see the gross compute cost the instance accumulated over its complete billed days.

However, the native recommender has blind spots that require further investigation. For instance, it evaluates primary instances rather than read replicas. Therefore, if an abandoned primary instance still has an attached read replica, or if you have standalone replicas sitting unused, you must inspect their Cloud Monitoring metrics separately. In addition, an instance created fewer than 30 days ago will not trigger a recommendation, even if a developer abandoned it on day two.

What stopping an instance saves, and what still bills

When you find an unused Cloud SQL database, your main options are stopping it or deleting it. To choose the right path, your team needs to understand how Cloud SQL separates compute billing from storage billing.

While an instance runs, its activation policy is set to ALWAYS. As a result, Google bills per second for the provisioned vCPUs and RAM configured in the machine tier. If the instance uses a High Availability (HA) regional configuration, those compute charges double to cover the standby replica. According to Google’s documentation on starting and stopping Cloud SQL instances, stopping an instance changes its activation policy to NEVER and immediately suspends instance compute charges.

Nevertheless, stopping an instance does not reduce its cost to zero. Your data remains intact on the underlying disk, so provisioned SSD or HDD storage continues to bill at the standard monthly GiB rate. In addition, any retained automated or on-demand backups still incur backup storage charges, and assigned public IPv4 addresses continue to bill per hour while the database is stopped. Therefore, stopping is a temporary pause for compute spend, whereas deleting the instance is the only way to stop storage and IP charges.

Confirm no application, report or job connects

Before you stop or delete a flagged database, you must verify that it is truly abandoned. Billing exports and recommender alerts only show what a resource cost and how little CPU it used over a recent observation window. Plainly stated, billing data cannot prove that a database is safe to remove. It cannot identify compliance retention rules, quarterly reporting dependencies, or disaster recovery roles.

First, locate the system owner using resource labels, project IAM records, or Terraform state files. Next, ask the owner to confirm that no application, report, or scheduled job uses the database. Some workloads only run once a quarter, such as financial closing scripts or seasonal batch jobs. An observation window of a few weeks will miss a quarterly job completely.

Furthermore, check Cloud Monitoring connection metrics yourself. Look at database/network/connections for MySQL and SQL Server, or database/postgresql/num_backends for PostgreSQL. If you see brief connection spikes, investigate whether they come from an active cron job or merely an internal health scanner.

Stop the instance, or export and delete it

Once the owner confirms nothing connects to the database, your team can act. The choice between stopping and deleting depends entirely on your data recovery needs.

When to stop the instance

If the owner wants to pause compute spending during a project freeze, or if you want a final scream test before permanent removal, stop the instance. When stopped, the database rejects all client connections. If a hidden application breaks, you can restart the instance within minutes. Remember that storage stays billed while the instance sits stopped, so treat a stopped database as a temporary holding state and schedule a follow-up date to review it.

When to export and delete

Conversely, if the database is permanently retired, stopping it leaves you paying for dead disk space indefinitely. Instead, determine what data you must keep for compliance or historical records. Export that data to a Cloud Storage bucket as a SQL dump file or CSV export, or take a final on-demand backup if appropriate. Verify that the export file is readable and complete. Finally, disable deletion protection if it is enabled, and delete the Cloud SQL instance to eliminate both compute and storage charges.

Check the vCPU and RAM charges afterwards

Your cleanup process is not finished when the console shows the instance is stopped or deleted. You should always verify that the expected billing change actually happens.

Wait for the following billing days to populate in your Google Cloud Billing export or the Cost Table report. Filter the billing records by the specific project ID and the Cloud SQL instance name. Confirm that the vCPU and RAM SKUs drop off on the days following your change.

If you only stopped the instance, you will still see daily charges for provisioned storage and any reserved IPv4 addresses. On the other hand, if you exported and deleted the instance, all compute and primary disk charges for that instance should stop completely. If compute charges continue to appear, check whether an automated deployment pipeline or infrastructure-as-code script restarted or recreated the database.

How Binadox helps identify idle Cloud SQL instances

Tracking down recommender alerts and matching them to billing exports across dozens of Google Cloud projects takes manual effort. Binadox simplifies this by surfacing idle Cloud SQL findings alongside their actual compute spend.

Specifically, Binadox flags when a specific Cloud SQL instance—showing its instance name, database version, machine tier, and project ID—is marked idle by Cloud SQL’s own recommendation over an observation period of days. Along with the technical metadata, Binadox displays the gross cost of the instance’s compute charges across the complete billed days in that window. It then gives your team a clear path forward: confirm with the owner that no application, report, or scheduled job connects, stop the instance (noting that storage stays billed) or export and delete it, and check the following billing days to ensure vCPU and RAM charges stop.

Conclusion

An idle Cloud SQL instance is one of the more straightforward cloud cost leaks to fix, provided you respect the difference between compute and storage billing. Google’s native recommender does the heavy lifting of spotting inactive primary databases, and stopping an instance halts the hourly vCPU and memory burn. However, a stopped database still quietly bills you every month for its disk, which turns “just stopping it for now” into a permanent storage tax. Talk to the owner, verify that no hidden cron job relies on the tables, and either pause the compute intentionally or export the data and delete the instance for good.

To stop paying for unused database capacity, you can start a free trial of Binadox today or book a demo with our cloud cost experts to see your potential savings.