gcloud beta firestore bulk-delete

NAME
gcloud beta firestore bulk-delete - bulk delete Cloud Firestore documents
SYNOPSIS
gcloud beta firestore bulk-delete[--async][--collection-ids=[COLLECTION_GROUP_IDS,…]][--database=DATABASE; default="(default)"][--namespace-ids=[NAMESPACE_IDS,…]][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) bulk delete Cloud Firestore documents.
EXAMPLES
To bulk delete a specific set of collections groups asynchronously, run:
gcloudbetafirestorebulk-delete--collection-ids='specific collection group1','specific collection group2'--async

To bulk delete all collection groups from certain namespace, run:

gcloudbetafirestorebulk-delete--namespace-ids='specific namespace id'
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--collection-ids=[COLLECTION_GROUP_IDS,…]
List specifying which collection groups will be included in the operation. Whenomitted, all collection groups are included.

For example, to operate on only thecustomers andorders collections groups:

gcloudbetafirestorebulk-delete--collection-ids='customers','orders'
--database=DATABASE; default="(default)"
The database to operate on. The default value is(default).

For example, to operate on databasefoo:

gcloudbetafirestorebulk-delete--database='foo'
--namespace-ids=[NAMESPACE_IDS,…]
List specifying which namespaces will be included in the operation. Whenomitted, all namespaces are included.

This is only supported for Datastore Mode databases.

For example, to operate on only thecustomers andorders namespaces:

gcloudbetafirestorebulk-delete--namespaces-ids='customers','orders'
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.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudfirestorebulk-delete
gcloudalphafirestorebulk-delete

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-11-18 UTC.