postgresql_16:7.2.5.1 Description
PostgreSQL 16 > Reference > PostgreSQL Client Applications > dropuser > Description
dropuser removes an existing PostgreSQL user. Superusers can use this command to remove any role; otherwise, only non-superuser roles can be removed, and only by a user who possesses the CREATEROLE privilege and has been granted ADMIN OPTION on the target role.
dropuser is a wrapper around the SQL command DROP ROLE (see postgresql_16:7.1.124). There is no effective difference between dropping users via this utility and via other methods for accessing the server.