Delete the Ray cluster on Vertex AI Stay organized with collections Save and categorize content based on your preferences.
When you finishdeveloping an application for your Ray clusteron Vertex AI, delete the cluster to avoid unnecessary billing.
Note: You can't reuse the cluster name for up to two hours after deleting thecluster.Console
In the Google Cloud console, go to the Ray on Vertex AI page.
Select the Ray cluster on Vertex AI you want to delete.
ClickDelete.
Vertex AI SDK for Python
From the same Python environment where you connected to your Ray cluster onVertex AI, run the following:
# Shut down the Ray on Vertex AI if currently connectedray.shutdown()# Delete clustervertex_ray.delete_ray_cluster(CLUSTER_RESOURCE_NAME)
Where:
- CLUSTER_RESOURCE_NAME: CLUSTER_RESOURCE_NAME='projects/{}/locations/{}/persistentResources/{}'.format(PROJECT_ID,LOCATION,CLUSTER_NAME).
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.