This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
DELETE INDEX
|
DELETE INDEX ( fieldPtr | indexName {; *} ) | ||||||||
Parameter | Type | Description | ||||||
fieldPtr | indexName | Pointer, String |
![]() |
Pointer to field whose indexes are to be deleted or Name of index to be deleted | |||||
* | Operator |
![]() |
If passed = asynchronous operation | |||||
The DELETE INDEX command deletes one or more existing indexes from the database.
You can pass either a pointer to a field or the name of an index in the parameter:
The optional * parameter, when it is passed, performs deindexing in asynchronous mode. In this mode, the original method continues its execution after the call from the command, regardless of whether or not the index deletion is finished.
If there is no index corresponding to fieldPtr or indexName, the command does nothing.
Since this command modifies the database structure, it cannot be used in the context of a read-only packaged application (.4dc file installed in the Program Files folder or .4dz file).
This example illustrates both syntaxes of the command:
`Deletion of all indexes related to the LastName field
DELETE INDEX(->[Customers]LastName)
`Deletion of index named “CityZip”
DELETE INDEX("CityZip")
Product: 4D
Theme: Structure Access
Number:
967
Created: 4D v11 SQL
4D Language Reference ( 4D v20 R7)