[ Web Proxy ]
URL:
Viewing: https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-drop-model [Back]  [Original]

The DROP MODEL statement  |  BigQuery  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

The DROP MODEL statement

To delete a model in BigQuery ML, use the DROP MODEL or the DROP MODEL IF EXISTS DDL statement.

The DROP MODEL DDL statement deletes a model in the specified dataset. If the model name does not exist in the dataset, the following error is returned:

Error: Not found: Model myproject:mydataset.mymodel

The DROP MODEL IF EXISTS DDL statement deletes a model in the specified dataset only if the model exists. If the model name does not exist in the dataset, no error is returned, and no action is taken.

If you are deleting a model in another project, you must specify the project, dataset, and model in the following format: `[PROJECT].[DATASET].[MODEL]` (including the backticks); for example, `myproject.mydataset.mymodel`.

For more information about supported SQL statements and functions for different model types, see the following documents:

Syntax

{DROP MODEL | DROP MODEL IF EXISTS}
model_name

Where:

{DROP MODEL | DROP MODEL IF EXISTS} is one of the following statements:

model_name is the name of the model you're deleting.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["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 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page