# DELETE-INDEX

Updated: 2/24/2021, 3:51:59 PM
Created: 2/24/2021, 3:51:59 PM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)

# Description

The DELETE-INDEX command deletes indexes on jBase files

delete-index -Options filename { {indexname {indexname ...}} | * }
1

Where Options can be:

Option Description
-a delete ALL indexes in the file
-S silent option

This command is called to delete one or more index definitions that are associated with a file. All the space taken by the index is released to the file overflow space (but not necessarily the operating system file free space).

Option -a causes all index definitions to be deleted. Without option -a you need to specify one or more index name on the command line.

Example: Delete ALL the index definitions for file PRODUCTS

jsh --> DELETE-INDEX -a PRODUCTS
jsh --> DELETE-INDEX PRODUCTS *
1
2

Example: Delete the index name "value" in the file PRODUCTS

jsh --> delete-index PRODUCTS value
1

Back to Indexes