nodejs-firestore
nodejs-firestore copied to clipboard
Publicize the recursiveDelete method for deleting subcollections
Please make sure you have searched for information in the following guides.
- [X] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- [X] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
- [X] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
- [X] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples
I couldn't check these guides because they're 404:
- [ ] Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting
- [ ] Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq
Documentation Request
Deleting a subcollection and all of its documents and their subcollections recursively is a common requirement. Yet neither of these Google resources mention recursiveDelete:
- https://firebase.google.com/docs/firestore/manage-data/delete-data#collections
- https://firebase.google.com/docs/firestore/solutions/delete-collections
recursiveDelete has been available since v4.11.0, released May 2021. Yet Gemini Thinking doesn't know about it, and reinvents the wheel:
Hi @dandv, thank you for reporting this issue. There is an internal ticket created for better documentation for the BulkWriter's, including the recursive delete. I will keep this thread updated once there is a progress.
Googler please see b/328629755.