public sealed class BulkDeleteDocumentsRequest : IMessage<BulkDeleteDocumentsRequest>, IEquatable<BulkDeleteDocumentsRequest>, IDeepCloneable<BulkDeleteDocumentsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore Admin v1 API class BulkDeleteDocumentsRequest.
The request for
[FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
When both collection_ids and namespace_ids are set, only documents satisfying
both conditions will be deleted.
Requests with namespace_ids and collection_ids both empty will be rejected.
Please use
[FirestoreAdmin.DeleteDatabase][google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase]
instead.
public RepeatedField<string> NamespaceIds { get; }
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended
usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be
used if the database has data in non-default namespaces, but doesn't want
to delete from them.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eBulkDeleteDocumentsRequest\u003c/code\u003e class within the Firestore Admin v1 API, specifically for .NET development, outlining its purpose in deleting documents from Firestore.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBulkDeleteDocumentsRequest\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Firestore.Admin.V1\u003c/code\u003e namespace, facilitates bulk deletion of documents, allowing specification of collection groups and namespaces.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a database name and can delete documents based on both collection IDs and namespace IDs, or it can delete documents from all namespaces and collection groups if those are left unspecified, given that if both are set, only documents that satisfy the conditions will be deleted.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this class that can be found in the documentation, ranging from version 2.2.0 up to the most recent version of 3.12.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class, providing functionalities for message handling, equality checks, deep cloning, and buffer manipulation.\u003c/p\u003e\n"]]],[],null,["# Firestore Admin v1 API - Class BulkDeleteDocumentsRequest (3.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.14.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.13.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.12.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.11.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.10.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.9.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.8.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.7.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.6.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.5.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.4.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.3.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.2.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.1.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.0.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/2.4.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/2.3.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/2.2.0/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest) \n\n public sealed class BulkDeleteDocumentsRequest : IMessage\u003cBulkDeleteDocumentsRequest\u003e, IEquatable\u003cBulkDeleteDocumentsRequest\u003e, IDeepCloneable\u003cBulkDeleteDocumentsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore Admin v1 API class BulkDeleteDocumentsRequest.\n\nThe request for\n\\[FirestoreAdmin.BulkDeleteDocuments\\]\\[google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments\\].\n\nWhen both collection_ids and namespace_ids are set, only documents satisfying\nboth conditions will be deleted.\n\nRequests with namespace_ids and collection_ids both empty will be rejected.\nPlease use\n\\[FirestoreAdmin.DeleteDatabase\\]\\[google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase\\]\ninstead. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BulkDeleteDocumentsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BulkDeleteDocumentsRequest](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BulkDeleteDocumentsRequest](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BulkDeleteDocumentsRequest](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Firestore.Admin.V1](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.Admin.V1.dll\n\nConstructors\n------------\n\n### BulkDeleteDocumentsRequest()\n\n public BulkDeleteDocumentsRequest()\n\n### BulkDeleteDocumentsRequest(BulkDeleteDocumentsRequest)\n\n public BulkDeleteDocumentsRequest(BulkDeleteDocumentsRequest other)\n\nProperties\n----------\n\n### CollectionIds\n\n public RepeatedField\u003cstring\u003e CollectionIds { get; }\n\nOptional. IDs of the collection groups to delete. Unspecified means all\ncollection groups.\n\nEach collection group in this list must be unique.\n\n### DatabaseName\n\n public DatabaseName DatabaseName { get; set; }\n\n[DatabaseName](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.DatabaseName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BulkDeleteDocumentsRequest#Google_Cloud_Firestore_Admin_V1_BulkDeleteDocumentsRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Database to operate. Should be of the form:\n`projects/{project_id}/databases/{database_id}`.\n\n### NamespaceIds\n\n public RepeatedField\u003cstring\u003e NamespaceIds { get; }\n\nOptional. Namespaces to delete.\n\nAn empty list means all namespaces. This is the recommended\nusage for databases that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the database has data in non-default namespaces, but doesn't want\nto delete from them.\n\nEach namespace in this list must be unique."]]