DROP GROUP statement [YSQL]

This page documents the preview version (v2.21). Preview includes features under active development and is for development and testing only. For production, use the stable version (v2024.1). To learn more, see Versioning.

Synopsis

Use the DROP GROUP statement to drop a role. DROP GROUP is an alias for DROP ROLE and is used to drop a role.

Syntax

drop_group ::= DROP GROUP [ IF EXISTS ] role_name [ , ... ]

drop_group

DROPGROUPIFEXISTS,role_name

Semantics

See DROP ROLE for more details.

Example

  • Drop a group.
yugabyte=# DROP GROUP SysAdmin;

See also