Skip to content

Commit 9ec4ca1

Browse files
authored
Update README to include Delete Instructions
Closes #120
1 parent 3870b5a commit 9ec4ca1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ To update only specific fields of a document at this location, we can set the `m
9090
firestore.updateDocument("FirstCollection/FirstDocument", data, true);
9191
```
9292

93+
##### Deleting Documents
94+
To delete a document at this location, we can use the `deleteDocument` function:
95+
```javascript
96+
firestore.deleteDocument("FirstCollection/FirstDocument");
97+
```
98+
**Note:** This cannot handle deleting collections or subcollections, *only* individual documents.
9399

94100
##### Getting Documents
95101
You can retrieve documents by calling the `getDocument` function:

0 commit comments

Comments
 (0)