gcloud memorystore instances delete

NAME
gcloud memorystore instances delete - delete a Memorystore instance
SYNOPSIS
gcloud memorystore instances delete(INSTANCE :--location=LOCATION)[--async][--request-id=REQUEST_ID][GCLOUD_WIDE_FLAG]
DESCRIPTION
Delete a Memorystore instance.
EXAMPLES
To delete Memorystore instancemy-instance in projectmy-project and locationus-central1, run:
gcloudmemorystoreinstancesdeletemy-instance--project=my-project--location=us-central1
POSITIONAL ARGUMENTS
Instance resource - The name of the instance to delete. Format:projects/{project}/locations/{location}/instances/{instance} The arguments inthis group can be used to specify the attributes of this resource. (NOTE) Someattributes are not given arguments in this group but can be set in other ways.

To set theproject attribute:

  • provide the argumentinstance on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

INSTANCE
ID of the instance or fully qualified identifier for the instance.

To set theinstance attribute:

  • provide the argumentinstance on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--location=LOCATION
The location id of the instance resource.

To set thelocation attribute:

  • provide the argumentinstance on the command line with a fullyspecified name;
  • provide the argument--location on the command line.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--request-id=REQUEST_ID
An optional request ID to identify requests. Specify a unique request ID so thatif you must retry your request, the server will know to ignore the request if ithas already been completed. The server will guarantee that for at least 60minutes after the first request.

For example, consider a situation where you make an initial request and therequest times out. If you make the request again with the same request ID, theserver can check if original operation with the same request ID was received,and if so, will ignore the second request. This prevents clients fromaccidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).

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 thememorystore/v1 API. The full documentationfor this API can be found at:https://cloud.google.com/memorystore/
NOTES
These variants are also available:
gcloudalphamemorystoreinstancesdelete
gcloudbetamemorystoreinstancesdelete

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.