Delete the Ray cluster on Vertex AI
When you're finished developing an application on your Ray on Vertex AI cluster, delete the cluster to avoid unnecessary billing.
Console
In the Google Cloud console, go to the Ray on Vertex AI page.
Select the Ray on Vertex AI cluster you want to delete.
Click Delete.
Vertex AI SDK for Python
From the same Python environment where you connected to your Ray on Vertex AI cluster, run the following:
# Shut down the Ray on Vertex AI if currently connected ray.shutdown() # Delete cluster vertex_ray.delete_ray_cluster(CLUSTER_RESOURCE_NAME)
Where:
- CLUSTER_RESOURCE_NAME: CLUSTER_RESOURCE_NAME='projects/{}/locations/{}/persistentResources/{}'.format(PROJECT_ID, REGION, CLUSTER_NAME).