# QueryInterface.dropView() method · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.queryinterface.dropview/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

Drops a view, if it exists.

**Signature:**

```typescript
dropView(viewName: string, options?: DropOptions): Promise<any>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| viewName | string | Name of the view to drop. |
| options | DropOptions | _(Optional)_ `cascade` also drops whatever depends on the view. |


**Returns:**

Promise<any>

The result of the drop statement.

## Remarks

Issues `DROP VIEW IF EXISTS`, so it is safe to call for a view that was never created. A materialized view needs a different statement and is not covered.

