Delete a collection.
This function generates a change.
del_collection(name)
Argument | Type | Description |
---|---|---|
name | str (required) | Name of the collection to delete. |
Returns nil
when successful. A lookup_err() is raised if the collection does not exist.
This code will delete collection stuff:
// Delete collection `stuff`
del_collection('stuff');