Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 1.17 KB

File metadata and controls

78 lines (56 loc) · 1.17 KB
title DROP MODEL Statement
sidebarTitle DROP MODEL

Description

The DROP MODEL statement deletes the model table.

Syntax

Here is the syntax:

DROP MODEL predictor_name;

On execution, we get:

Query OK, 0 rows affected (0.058 sec)

Where:

Name Description
predictor_name Name of the model to be deleted.

Example

Let's list all the available predictor tables.

SELECT name
FROM mindsdb.models;

On execution, we get:

+---------------------+
| name                |
+---------------------+
| other_model         |
| home_rentals_model  |
+---------------------+

Now we delete the home_rentals_model table.

DROP MODEL home_rentals_model;

On execution, we get:

Query OK, 0 rows affected (0.058 sec)

We can check if the deletion was successful by querying the mindsdb.models table again.

SELECT name
FROM mindsdb.models;

On execution, we get:

+---------------------+
| name                |
+---------------------+
| other_model         |
+---------------------+