[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],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)."]]