Click or drag to resize
Galactic API

MongoDBUtilityDelete Method (String, String)

Deletes the specified id and it's associated document from the specified collection.

Namespace:  Galactic.NoSql.MongoDB
Assembly:  Galactic.NoSql.MongoDB (in Galactic.NoSql.MongoDB.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public bool Delete(
	string id,
	string collection
)

Parameters

id
Type: SystemString
The name of the id to delete.
collection
Type: SystemString
The name of the collection to delete the document in.

Return Value

Type: Boolean
True if the id/document was deleted, false if there was an error or it could not otherwise be deleted.
See Also