JavaScript Functions > Virtual Table Server Functions for Single Connection (lrvtc) > Alphabetical Listing of Virtual Table Server Functions (Single Server) > lrvtc.dropIndex

lrvtc.dropIndex

Deletes the index on a column.

Example Global Functions

Syntax

lrvtc.dropIndex ( columnName );

Arguments

name Comments
columnName The name of the column to remove the index from.

lrvtc.dropIndex deletes a column index created with lrvtc.ensureIndex.

Return Values

Returns zero on success or one of the Error Codes.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

var rc = 0;

rc = lrvtc.createColumn("Name");
if(rc) {lr.errorMessage("Create column failed.");}

rc = lrvtc.dropIndex("Name");
if(rc) {lr.errorMessage("Index operation failed.");}