del_collection

Delete a collection.

This function generates a change.

Function

del_collection(name)

Arguments

Argument Type Description
name str (required) Name of the collection to delete.

Return value

Returns nil when successful. A lookup_err() is raised if the collection does not exist.

Example

This code will delete collection stuff:

// Delete collection `stuff`
del_collection('stuff');