Updated on 2025-02-27 GMT+08:00

DROP GROUP

Description

Drops a user group.

DROP GROUP is an alias for DROP ROLE.

Precautions

DROP GROUP is an API of the GaussDB management tool. You are advised not to use this API, because doing so affects GaussDB.

Syntax

DROP GROUP [ IF EXISTS ] group_name [, ...];

Parameters

  • IF EXISTS

    Reports a notice instead of an error if the specified role does not exist.

  • group_name

    Specifies the name of the role to be dropped.

    Value range: an existing role name.

Examples

See Examples in "CREATE ROLE."

Helpful Links

CREATE GROUP, ALTER GROUP, and DROP ROLE