fuego icon indicating copy to clipboard operation
fuego copied to clipboard

Delete command missing recursive option

Open sgarciac opened this issue 2 years ago • 3 comments

The delete command should support an option to delete subcollections recursively

sgarciac avatar Sep 22 '21 14:09 sgarciac

Firebase CLI supports recursive delete: https://github.com/firebase/firebase-tools#cloud-firestore-commands, https://firebase.google.com/docs/firestore/solutions/delete-collections (Node.js implementation, not sure about Go).

loomchild avatar Aug 10 '22 15:08 loomchild

Yes, unless I am wrong the recursion is directly written in the firebase CLI tool and not supported by the underlying nodejs library.

sgarciac avatar Aug 10 '22 17:08 sgarciac

I think so by quickly looking at: https://github.com/firebase/firebase-tools/blob/3970dda2bfc5d27a85ac6ac949ef925730cba2b1/src/firestore/delete.ts.

IMHO, if the recursive delete is already supported by the CLI, there's no urgent need to implement it in Fuego. (although it would be a cool addition, especially since you already have recursive copy)

loomchild avatar Aug 10 '22 18:08 loomchild

I guess this issue can be closed :)

Mopsgeschwindigkeit avatar Aug 22 '23 13:08 Mopsgeschwindigkeit