Rename Collection / Change Collection ID

Rename Collection / Change Collection ID

The Firebase Console is missing some essential features like renaming collections. Previously you had to create a new collection with the same documents and delete the old collection manually or write a script that does this for you. With Firefoo, it's a matter of a few clicks!

Renaming a Collection using Firefoo

  1. Download and install Firefoo.
  2. Right-click the collection in the sidebar and select Rename Collection.
  3. Enter the target collection name and click OK.
  4. That’s it!
Firefoo will automatically copy all documents. This might take some time if the collection is huge. You can track the progress in the Tasks popup, reachable through File Tasks.


What about subcollections?

Subcollections in the documents of the source collection will be copied recursively to the target collection. You don’t have to worry about them.
If you want to rename a subcollection, that is also possible with Firefoo! Subcollections are not shown in the sidebar. That’s why you have to locate the subcollection in the Tree view (not the Table view, which currently does not list subcollections) and open the right-click context menu from there.

How many requests will this take away from my quota?

For every document in your Firestore collection, the rename operation in Firefoo uses two reads, one write and one delete.
The two reads are due to the need to check every document for subcollections, which has to be performed as a separate request.