mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-10 11:21:48 +00:00
80 lines
3 KiB
Text
80 lines
3 KiB
Text
NAME
|
|
gcloud beta app-lifecycle-manager flags delete - delete Flag
|
|
|
|
SYNOPSIS
|
|
gcloud beta app-lifecycle-manager 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 app-lifecycle-manager flags delete my-feature-flag \
|
|
--location=global
|
|
|
|
To delete a flag using a fully qualified resource name (useful for
|
|
automation), run:
|
|
|
|
$ gcloud beta app-lifecycle-manager 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.
|
|
|