deleteObject

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

Deletes an object from a specified collection.

#Parameters The function has the following parameters:

Argument Description Required

dbApiKey

Database API key.

Yes.

token

String with user token or database Master key.

No.

collectionName

String with database collection name.

Yes.

objectId

ID 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 an empty response body with code 200.