$ open source · GPL-3.0 — need a commercial license? imqueue.com →

BaseModel.drop() method

Drops this model's relation: DROP VIEW for a view, DROP TABLE otherwise.

Signature:

static drop(options?: DropOptions): Promise<any>;

Parameters

Parameter

Type

Description

options

DropOptions

(Optional) Sequelize's own drop options; cascade applies to both.

Returns:

Promise<any>

The result of the drop statement.