Delete the Ray cluster on Gemini Enterprise Agent Platform
Stay organized with collections
Save and categorize content based on your preferences.
When you finish developing an application for your Ray cluster on Gemini Enterprise Agent Platform, delete the cluster to avoid unnecessary billing.
Console
In the Google Cloud console, go to the Ray on Agent Platform page.
Select the Ray cluster on Gemini Enterprise Agent Platform you want to delete.
Click Delete.
Agent Platform SDK for Python
From the same Python environment where you connected to your Ray cluster on Gemini Enterprise Agent Platform, run the following:
# Shut down the Ray on Agent Platform 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, LOCATION, CLUSTER_NAME).