DROP USER(7) PostgreSQL 16.2 Documentation DROP USER(7)

DROP_USER - remove a database role

DROP USER [ IF EXISTS ] name [, ...]

DROP USER is simply an alternate spelling of DROP ROLE.

The DROP USER statement is a PostgreSQL extension. The SQL standard leaves the definition of users to the implementation.

DROP ROLE (DROP_ROLE(7))

2024 PostgreSQL 16.2