DROP USER

Syntax

DROP USER 'email_address';

Description

Drops a user from the organization.

Only a role with the MANAGE_MEMBERS privilege can drop a user.

Arguments

email_address

The email address of the user to drop from the current organization.

Examples

Drop a User

The following drops the user with email delta@deltastream.io:

demodb.public/demostore# SHOW USERS;
+-------------+--------------+-------------+----------------------+------------+
|  Given Name |  Family Name |  Is Current |  Email               |  Locale    |
+=============+==============+=============+======================+============+
| Delta       | Stream       | false       | delta@deltastream.io | en         |
+-------------+--------------+-------------+----------------------+------------+
| Admin       | Stream       | true        | admin@deltastream.io | en         |
+-------------+--------------+-------------+----------------------+------------+
demodb.public/demostore# DROP USER 'delta@deltastream.io';
+------------+----------------------+------------+------------------------------------------+
|  Type      |  Name                |  Command   |  Summary                                 |
+============+======================+============+==========================================+
| user       | delta@deltastream.io | DROP       | user delta@deltastream.io was dropped    |
|            |                      |            | from the organization                    |
+------------+----------------------+------------+------------------------------------------+

Last updated