Stay organized with collections
Save and categorize content based on your preferences.
This page describes the process to delete an online prediction model and all the
resources associated with it.
Before you begin
To get the permissions that you need to access Online Prediction,
ask your Project IAM Admin to grant you the Vertex AI
Prediction User (vertex-ai-prediction-user) role.
Additionally, to get the permissions that you need to delete objects in a
bucket, ask your Project IAM Admin to grant you the Project Bucket Object Admin
(project-bucket-object-admin) role in the project.
Delete resources
If you want to delete an online prediction model and all the resources
associated with it, perform the following steps:
Delete the DeployedModel custom resource associated with your model
on the prediction cluster:
Replace ENDPOINT_NAME with the name of the
Endpoint definition file.
On the YAML file, manually delete the serviceRef object containing
the DeployedModel reference you deleted previously.
Save the changes on the YAML file.
Delete your model from the storage bucket. For more information about how to
delete objects from storage buckets, see Delete storage objects in projects.
[[["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-07 UTC."],[[["\u003cp\u003eOnline Prediction is a Preview feature not recommended for production environments and lacks service-level agreements or technical support.\u003c/p\u003e\n"],["\u003cp\u003eDeleting an online prediction model involves removing the associated \u003ccode\u003eDeployedModel\u003c/code\u003e custom resource from the prediction cluster using \u003ccode\u003ekubectl\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDepending on whether the \u003ccode\u003eEndpoint\u003c/code\u003e hosts other models, you must either delete the entire \u003ccode\u003eEndpoint\u003c/code\u003e custom resource or edit it to remove the deleted \u003ccode\u003eDeployedModel\u003c/code\u003e's \u003ccode\u003eserviceRef\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAfter removing the \u003ccode\u003eDeployedModel\u003c/code\u003e and adjusting the \u003ccode\u003eEndpoint\u003c/code\u003e, the final step is to delete the model from its storage bucket.\u003c/p\u003e\n"]]],[],null,[]]