Bulk operations
Every operation on this page is recorded as a single reversible step in the change history.
Bulk field update
Select documents, or target an entire query result, and apply one change to all of them.
| Operation | Effect |
|---|---|
| Set | Give the field the same value in every document |
| Delete | Remove the field entirely |
| Increment | Add to (or subtract from) a number, atomically |
| Array union | Add members not already present |
| Array remove | Remove members wherever they appear |
These are issued as Firestore’s own server-side transforms, so they remain correct even if your application is writing to the same documents concurrently.
Bulk delete
Bulk delete takes a query rather than a selection, so it scales past what you can see on screen.
- Write the query.
- FireFetch runs a server-side
COUNT(*)and reports the number of matching documents — “Found 1,842 documents matching this query.” - Confirm.
- Deletion proceeds in batches of 500, with live progress and a working cancel button.
The collection is never loaded into memory, so this behaves identically on 200 documents and 200,000.
Read the count before confirming. If the number is not roughly what you expected, your query is not doing what you think it is — and you have just avoided a bad afternoon.
Find and replace
Open with Cmd/Ctrl+Shift+H.
Rules are typed. A rule matching the number 42 does not match the string "42", and a replacement does not change a value’s type unless you ask it to. Most find-and-replace implementations stringify everything, which is how numeric fields quietly become text.
Match modes:
- Exact — the whole value, including its type
- Contains — substring, within string fields
- Starts with — prefix, useful when migrating id schemes
- Regex — full patterns, with case sensitivity you control
Replacements are scoped to the filters currently applied in your tab, so you can narrow to exactly the documents you mean first. You always see a preview of every pending change before anything is committed.
Undo
All of it reverses. A bulk update across four thousand documents is one entry in the history panel and one click to take back — including find-and-replace, including partial string edits.
Something unclear or out of date? Email[email protected].