Cleaned up cleanup section (#291)

This commit is contained in:
Ivan Cheung
2022-02-16 10:28:42 -05:00
committed by GitHub
parent 273c91882e
commit c41ec1fabd
+1 -4
View File
@@ -675,9 +675,6 @@
},
"outputs": [],
"source": [
"# Warning: Setting this to true will delete everything in your bucket\n",
"delete_bucket = False\n",
"\n",
"# Delete endpoint resource\n",
"! gcloud ai endpoints delete $ENDPOINT_NAME --quiet --region $REGION_NAME\n",
"\n",
@@ -687,7 +684,7 @@
"# Delete Cloud Storage objects that were created\n",
"! gsutil -m rm -r $JOB_DIR\n",
"\n",
"if delete_bucket and \"BUCKET_URI\" in globals():\n",
"if os.getenv(\"IS_TESTING\"):\n",
" ! gsutil -m rm -r $BUCKET_URI"
]
}