OS Manuals

/usr/bin/dropuser

PostgreSQL client

From postgresql-17-client 17.11-r5 (enterprise-packages), captured 2026-11-08 by running dropuser --help (exit 0). permalink

dropuser removes a PostgreSQL role.

Usage:
  dropuser [OPTION]... [ROLENAME]

Options:
  -e, --echo                show the commands being sent to the server
  -i, --interactive         prompt before deleting anything, and prompt for
                            role name if not specified
  -V, --version             output version information, then exit
  --if-exists               don't report error if user doesn't exist
  -?, --help                show this help, then exit

Connection options:
  -h, --host=HOSTNAME       database server host or socket directory
  -p, --port=PORT           database server port
  -U, --username=USERNAME   user name to connect as (not the one to drop)
  -w, --no-password         never prompt for password
  -W, --password            force password prompt

Report bugs to <pgsql-bugs@lists.postgresql.org>.
PostgreSQL home page: <https://www.postgresql.org/>
Options (10)
OptionDescriptionSource
-e, --echoshow the commands being sent to the serverhelp
-i, --interactiveprompt before deleting anything, and prompt for role name if not specifiedhelp
-V, --versionoutput version information, then exithelp
--if-existsdon't report error if user doesn't existhelp
-?, --helpshow this help, then exithelp
-h, --host HOSTNAMEdatabase server host or socket directoryhelp
-p, --port PORTdatabase server porthelp
-U, --username USERNAMEuser name to connect as (not the one to drop)help
-w, --no-passwordnever prompt for passwordhelp
-W, --passwordforce password prompthelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.