Removes a database role.
dropuser [<connection-option> ...] [-e] [-i] <role_name>
dropuser -? | --help
dropuser -V | --version
dropuser
removes an existing role from Greenplum Database. Only superusers and users with the CREATEROLE
privilege can remove roles. To remove a superuser role, you must yourself be a superuser.
dropuser
is a wrapper around the SQL command DROP ROLE
.
-i
/
--interactive
option is used.
dropuser
generates and sends to the server.
dropuser
version and exit.
dropuser
command line arguments, and exit.
Connection Options
PGHOST
or defaults to localhost.
PGPORT
or defaults to 5432.
PGUSER
or defaults to the current system role name.
.pgpass
file, the connection attempt will fail. This option can be useful in batch jobs and scripts where no user is present to enter a password.
To remove the role joe
using default connection options:
dropuser joe
DROP ROLE
To remove the role joe using connection options, with verification, and a peek at the underlying command:
dropuser -p 54321 -h masterhost -i -e joe
Role "joe" will be permanently removed.
Are you sure? (y/n) y
DROP ROLE "joe"
DROP ROLE