DeleteSimpleData()

Description

This function deletes the document at a particular location, given by the collection it is under and the document name.

Syntax

DeleteSimpleData(collectionName, documentName)

Returns

N/A

Example Implementation

DeleteSimpleData("users", "Peter")

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