[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Delete the Ray cluster on Vertex AI\n\nWhen you finish [developing an application](/vertex-ai/docs/open-source/ray-on-vertex-ai/develop-application) for your Ray cluster\non Vertex AI, delete the cluster to avoid unnecessary billing.\n**Note:** You can't reuse the cluster name for up to two hours after deleting the cluster. \n\n### Console\n\n1. In the Google Cloud console, go to the Ray on Vertex AI page.\n\n [Go to the Ray page](https://console.cloud.google.com/vertex-ai/ray)\n2. Select the Ray cluster on Vertex AI you want to delete.\n\n3. Click **Delete**.\n\n### Vertex AI SDK for Python\n\nFrom the same Python environment where you connected to your Ray cluster on\nVertex AI, run the following: \n\n```python\n# Shut down the Ray on Vertex AI if currently connected\nray.shutdown()\n\n# Delete cluster\nvertex_ray.delete_ray_cluster(CLUSTER_RESOURCE_NAME)\n```\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003eCLUSTER_RESOURCE_NAME\u003c/var\u003e: CLUSTER_RESOURCE_NAME='projects/{}/locations/{}/persistentResources/{}'.format(\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e, \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e, \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e)."]]