deleteObject

Collection.deleteObject(dbApiKey, collectionName, objectId[, token])

Deletes an object from a specified collection.

Parameters

The function has the following parameters:

ArgumentDescriptionRequired
dbApiKeyDatabase API key.Yes.
tokenString with user token or database Master key.No.
collectionNameString with database collection name.Yes.
objectIdID of object that should be deleted.Yes
Example

The following example shows how to delete an object from a specified collection:

var dbApiKey = "c33010af-f263-4443-9897-c2ffaf522956";
Collection.deleteObject(dbApiKey, "Student", "57a52a1be4b0288ba31f1833");
The method returns empty response body with code 200.