public final OperationFuture<Empty, OperationMetadata> deleteInstanceAsync(String name) {
    DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name).build();
    return deleteInstanceAsync(request);
  }
Deletes a single Instance.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
  String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
  memorystoreClient.deleteInstanceAsync(name).get();
}
}</pre>

@param name Required. The name of the instance to delete. Format:
    projects/{project}/locations/{location}/instances/{instance}
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java