gcloud firestore bulk-delete
Stay organized with collections
Save and categorize content based on your preferences.
- NAME
-
- gcloud firestore bulk-delete - bulk delete Cloud Firestore documents
- SYNOPSIS
-
-
gcloud firestore bulk-delete[--async] [--collection-ids=[COLLECTION_GROUP_IDS,…]] [--database=DATABASE; default="(default)"] [--namespace-ids=[NAMESPACE_IDS,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- bulk delete Cloud Firestore documents.
- EXAMPLES
-
To bulk delete a specific set of collections groups asynchronously, run:
gcloudfirestorebulk-delete--collection-ids='specific collection group1','specificcollection group2'--asyncTo bulk delete all collection groups from certain namespace, run:
gcloudfirestorebulk-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. When
omitted, all collection groups are included.
For example, to operate on only the
customersandorderscollections groups:gcloudfirestorebulk-delete--collection-ids='customers','orders' --database=DATABASE; default="(default)"-
The database to operate on. The default value is
(default).For example, to operate on database
foo:gcloudfirestorebulk-delete--database='foo' --namespace-ids=[NAMESPACE_IDS,…]-
List specifying which namespaces will be included in the operation. When
omitted, all namespaces are included.
This is only supported for Datastore Mode databases.
For example, to operate on only the
customersandordersnamespaces:gcloudfirestorebulk-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 helpfor details. - NOTES
-
These variants are also available:
gcloudalphafirestorebulk-deletegcloudbetafirestorebulk-delete