- gcloud alpha sql users delete - deletes a Cloud SQL user in a given instance
gcloud alpha sql users delete USERNAME --instance=INSTANCE, -i INSTANCE [--async] [--host=HOST] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Deletes a Cloud SQL user in a given instance specified by username
Cloud SQL username.
- --instance=INSTANCE, -i INSTANCE
Cloud SQL instance ID.
Display information about the operation in progress, without waiting for the
operation to complete.
Cloud SQL user's host name expressed as a specific IP address or address range.
% denotes an unrestricted host name. Applicable flag for MySQL instances;
ignored for PostgreSQL instances. Note, if you connect to your instance using IP
addresses, you must add your client IP address as an Authorized Address, even if
your host name is unrestricted. For help on how to do so, read:
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud sql users delete $ gcloud beta sql users delete