Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
Firestore recursive delete doesnt work as expected

I have used the following code in a Map iteration (as i havent found how to achieve a batch recursive delete) :

await firebaseTools.firestore
  .delete(path, {
    project: process.env.GCLOUD_PROJECT,
    recursive: true,
    yes: true,
    token: functions.config().fb.token
  }).then(() => {
    console.log(`path data  ${path} was recursively deleted`);
  });

with Path being doc.ref.path But Documents of collection get deleted but not the subcollections which leads to all my collection documents to be as Non-existent ancestor documents (which will complicated things now for cleaning)

Why the recursive function doesnt work as expected?

Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!