Stay organized with collections
Save and categorize content based on your preferences.
Bulk deletes a subset of documents from Google Cloud Firestore. Documents created or updated after the underlying system starts to process the request will not be deleted. The bulk delete occurs in the background and its progress can be monitored and managed via the Operation resource that is created.
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
namespaceIds[]
string
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.
Each namespace in this list must be unique.
Response body
If successful, the response body contains an instance of Operation.
[[["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-06-02 UTC."],[[["\u003cp\u003eThis endpoint performs a bulk delete of documents from Google Cloud Firestore, but documents created or updated during the process will not be deleted.\u003c/p\u003e\n"],["\u003cp\u003eThe bulk deletion process runs in the background, and its progress can be monitored and managed through an associated Operation resource.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify which collection groups to delete using \u003ccode\u003ecollectionIds\u003c/code\u003e and which namespaces to delete using \u003ccode\u003enamespaceIds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint takes in a URL parameter \u003ccode\u003ename\u003c/code\u003e, in the format of \u003ccode\u003eprojects/{projectId}/databases/{databaseId}\u003c/code\u003e to specify which database to perform the bulk deletion on.\u003c/p\u003e\n"],["\u003cp\u003eThis endpoint requires \u003ccode\u003ehttps://www.googleapis.com/auth/datastore\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e authorization scopes.\u003c/p\u003e\n"]]],[],null,[]]