SQL COMMANDS / ROLES & PRIVILEGES
DROP USER
Read PG 18 manual ↗remove a database role
Syntax
DROP USER [ IF EXISTS ] name [, ...]
Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
Description
DROP USER is simply an alternate spelling of DROP ROLE.
Compatibility
The DROP USER statement is a PostgreSQL extension. The SQL standard leaves the definition of users to the implementation.
See Also
DROP ROLERelated entries
Definition snapshot: 2026-09-14T13:14:25.700916+00:00@99e6866c · English manual source