DeleteSimpleData()
Description
This function deletes the document at a particular location, given by the collection it is under and the document name.
Syntax
Argument
Description
collectionName
The name of the collection in the root of your database where you want to delete the document. This must be a String.
documentName
The Name of the Document you want to delete. This must be a String.
Returns
Example Implementation
This requests the server to look into the "users" collection and remove a document named "Peter". If the collection "users" has nothing under it now, it will not exist anymore.
Last updated