isdelindex

drop an index from an ISAM file

SYNOPSIS

int isdelindex( int isfd, IsKdsc * key );

isfd isam file identifier
key description of secondary index to delete, see isam indexes

RETURN

SUCCESS, or a negative value on error, in which case the error code is found in iserrno.

NOTES

when deleting an index from a populated file, isdelindex will purge the accumulated keys. in the case of larger files this could take a while, but will be significantly faster than the isaddindex call.

if the file is not exclusively locked, an automatic ISEXCLLOCK will be placed around the operation, and if this is not possible, an ENOTEXCL error will be returned.

SEE ALSO

isaddindex