DROP USER
Remove a user.
Remove a user.
Synopsis
DROP USER IF EXISTS user_name
A semicolon that terminates CQL statements is not included in the synopsis. |
Description
DROP USER removes an existing user. You can test that the user exists. Attempting to drop a user that does not exist results in an invalid query condition unless the IF EXISTS option is used. If the option is used, the statement will be a no-op if the user does not exist. You have to be logged in as a superuser to issue a DROP USER statement. Users cannot drop themselves.
Enclose the user name in single quotation marks only if it contains non-alphanumeric characters.