Skip to main content
The DROP TYPE statement drops a specified enumerated data type from the current database. The DROP TYPE statement performs a schema change. For more information about how online schema changes work in CockroachDB, see Online Schema Changes.

Synopsis

drop_type syntax diagram

Parameters

Required privileges

The user must be the owner of the type.

Details

  • You cannot drop a type or view that is in use by a table.
  • You can only drop a user-defined type from the database that contains the type.

Examples

Drop a single type

Drop multiple types

See also