CollectionIndexdelete()

Deletes the given key from the collection. If a query is specified then the key parameter is the column where the unique identifier is. The query is then looped over and all the values deleted from the index

Usage

BOOLEAN = CollectionIndexdelete( collection, key, query )
Argument Summary
collection the name of the collection
key the unique identifier for this document. If a document already exists, it will be removed and replaced with this one. If 'query' present, this is the column where the key is found
query the query representing all the rows to add to this index. [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

CollectionIndexdelete(
   collection=?, 
   key=?, 
   query=?
);

Supports passing parameters as a structure using ArgumentCollection:

CollectionIndexdelete( ArgumentCollection={
   collection : ?, 
   key : ?, 
   query : ?
} );

Extra

For more information on searching please visit Searching within OpenBD CFML