Fuego

Deleting Firestore Documents in Fuego

big-idea

In Fuego, you can delete Firestore documents in two ways: manually selecting them or using a query to filter the documents to be deleted.

Manual Deletion

  1. Navigate to the desired collection.
  2. Select the documents you want to delete by clicking on the checkboxes.
  3. Use the menu that appears when selecting documents, showing the number of selected items, and choose Delete.
  4. Confirm the deletion in the prompt that appears.

Deletion via Query

  1. Open the collection where the documents are stored.
  2. Click on Tools and select Delete documents.
  3. In the delete panel, enable Filters to specify deletion criteria.
  4. Configure conditions based on attributes such as string matching or date ranges.
  5. Optionally, enable Also delete subcollections if nested documents should be removed.
  6. Click Confirm to execute the deletion.

This approach allows for bulk deletion based on specific conditions, reducing manual effort when handling large datasets.

Deleting Collections and Subcollections

In addition to deleting individual documents, Fuego also allows the deletion of entire collections or subcollections:

  1. Navigate to the collection you want to delete.
  2. Click on Tools and select Delete collection.
  3. If you need to delete a subcollection, first navigate into it and repeat the process.
  4. Confirm the deletion when prompted.

Be cautious when deleting collections, as this action is irreversible and will remove all documents and subcollections within them.

.