Skip to main content

DROP TYPE

Turso Extension: DROP TYPE is a Turso-specific statement not available in standard SQLite. This feature is experimental and must be enabled before use.
The DROP TYPE statement removes a user-defined custom type from the database. Once dropped, the type name can no longer be used in new column definitions.

Syntax

Description

DROP TYPE removes the named custom type from the database. The type must exist unless the IF EXISTS clause is specified.

Clauses

Restrictions

A type cannot be dropped while any table column uses it. All columns of that type must be removed or the table must be dropped before the type can be dropped.

Examples

Drop a Custom Type

Drop a Type with IF EXISTS

See Also