Hello custom training: Clean up your project Stay organized with collections Save and categorize content based on your preferences.
This page guides you through cleaning up the Google Cloud resources that youcreated to train your image classification model and serve predictions from it.
This tutorial has several pages:Serving predictions from a custom image classificationmodel.
Cleaning up your project.
Each page assumes that you have already performed the instructions from theprevious pages of the tutorial.
The rest of this document assumes that you are using the same Cloud Shellenvironment that you created when following thefirst page of thistutorial. If your original Cloud Shell session is nolonger open, you can return to the environment by doing the following:In the Google Cloud console, activate Cloud Shell.
In the Cloud Shell session, run the following command:
cdhello-custom-sample
Delete Vertex AI resources
This section describes how to delete all of the Vertex AI resourcesthat you created for this tutorial.
Undeploy your model from your endpoint
This section describes how to undeploy your model from your endpoint. You canthink about this action as a way of disconnecting your model from your endpoint.
You must follow this section before you candelete yourendpoint ordelete your model.
In the Google Cloud console, in the Vertex AI section, go totheEndpoints page.
Click
hello_customto go to the endpoint details page.On the row for your model,
hello_custom, clickUndeploy model.In theUndeploy model from endpoint dialog, clickUndeploy.
Delete your endpoint
Before you delete an endpoint, you mustundeploy your model from yourendpoint. After you've deleted your endpoint, you won'tbe able to re-use that endpoint name for up to 7 days.
After you've undeployed your model from the endpoint, do the followingto delete your endpoint:
In the Google Cloud console, in the Vertex AI section, go totheEndpoints page.
Find your the row of your endpoint,
hello_custom, again. On that row, clickView moremore_vert . Then clickRemove endpoint.In theRemove endpoint dialog, clickConfirm.
Delete your model
Before you follow this section, you mustundeploy your model from yourendpoint. Afterward, do the following to delete your model:
In the Google Cloud console, in the Vertex AI section, go totheModels page.
Find your the row of your model,
hello_custom. On that row, clickViewmore. ThenclickDelete model.In theDelete model dialog, clickDelete.
Delete your custom training pipeline and job
Your training pipeline and custom job are just records of the training thathappened earlier. If you want to delete your custom job, do the following:
In the Google Cloud console, in the Vertex AI section, go totheTraining pipelines page.
Find your the row of your training pipeline,
hello_custom. On that row,clickView moremore_vert . Then clickDelete trainingpipeline.In theDelete training job dialog, clickDelete.
To go to theCustom jobs page, clickCustom job in theGoogle Cloud console, or click the following link:
Find your the row of your custom job,
hello_custom-custom-job. On that row,clickView moremore_vert . Then clickDelete custom job.In theDelete training job dialog, clickDelete.
Clean up your Cloud Shell session
Cloud Shell incurs no charges, and itautomatically deletes your homedisk after a period of inactivity. However, if youplan to use Cloud Shell for other purposes in the near future, youmight want to manually remove the files that you created for this tutorial.
In your Cloud Shell session, run the following commands:
cd..rm-rfhello-custom-sampleDelete your Cloud Storage bucket
In your Cloud Shell session, run the following command:
gcloudstoragermgs://BUCKET_NAME--recursive--continue-on-errorReplaceBUCKET_NAME with the name of the Cloud Storagebucket that you created when reading thefirst page of thistutorial.
Delete your Cloud Run function
In your Cloud Shell session, run the following command:
gcloudfunctionsdeleteclassify_flower--region=us-central1--quietWhat's next
To learn about additional ways to train ML models on Vertex AI,try one of the otherVertex AI tutorials.
Read anoverview of how Vertex AIworks.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.