1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-10 03:16:46 +00:00
gcloud-help/gcloud/beta/saas-runtime/flags/delete
2026-05-13 13:12:23 +00:00

80 lines
2.9 KiB
Text

NAME
gcloud beta saas-runtime flags delete - delete Flag
SYNOPSIS
gcloud beta saas-runtime flags delete (FLAG : --location=LOCATION)
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Delete a feature flag resource.
This operation is permanent. To prevent production outages, the flag MUST
be detached from all Units and UnitKinds via a rollout before it is
deleted.
The safe deletion workflow is:
1. Ensure all application code using the flag has been removed and the updated binary is deployed to production.
2. Confirm that no active Units are still requesting evaluations for that specific flag key.
3. Detach from Units: create a new FlagRelease that includes Flag to remove and initiate a Rollout.
4. Once the cleanup rollout is complete, you can safely delete the FlagRelease and FlagRevision.
5. Run this delete command to permanently remove the Flag.
EXAMPLES
To delete a flag named my-feature-flag in the global location, run:
$ gcloud beta saas-runtime flags delete my-feature-flag \
--location=global
To delete a flag using a fully qualified resource name (useful for
automation), run:
$ gcloud beta saas-runtime flags delete \
projects/my-project/locations/global/flags/my-feature-flag
POSITIONAL ARGUMENTS
Flag resource - Flag ID of the Flag to delete. The arguments in this group
can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other
ways.
To set the project attribute:
◆ provide the argument flag on the command line with a fully specified
name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
FLAG
ID of the flag or fully qualified identifier for the flag.
To set the flag attribute:
▸ provide the argument flag on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Location ID
To set the location attribute:
▸ provide the argument flag on the command line with a fully
specified name;
▸ provide the argument --location on the command line.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
API REFERENCE
This command uses the saasservicemgmt/v1beta1 API. The full documentation
for this API can be found at: https://cloud.google.com/saas-runtime/docs
NOTES
This command is currently in beta and might change without notice.