# delete-index command

The delete-index BASIC program removes
either a specific B-tree index from a specified file, or all indexes
if an asterisk is specified.

## Syntax

```
delete-index file.reference[a.code|*] {(options)}
```

## Parameter(s)

| a.code | Specifies the a (algebraic) processing code of the B-tree index to delete. The processing code must include an attribute number. | |
| --- | --- | --- |
| * | Specifies all indexes. | |
| options | c | Specifies a case sensitive index. Default is case insensitive. |

## Example(s)

```
delete-index entity a1
```

```
delete-index invoices a1(tcustomer.file;x;;1)
```

```
delete-index sales a1:3
```

```
delete-index entity *
```

## See also

- [a (algebraic) processing code](https://d3codex.com/processingcodes/a-algebraic-processing-code/)
- [B-tree](https://d3codex.com/definitions/b-tree/)
- [begin work statement](https://d3codex.com/pickbasic-flashbasic/begin-work-statement/)
- [clear-index command](https://d3codex.com/tcl/clear-index-command/)
- [create-index command](https://d3codex.com/tcl/create-index-command/)
- [indexer command](https://d3codex.com/tcl/indexer-command/)
- [nframe-index command](https://d3codex.com/tcl/nframe-index-command/)
- [verify-index command](https://d3codex.com/tcl/verify-index-command/)

---
Source: https://d3codex.com/tcl/delete-index-command/ - part of the D3Codex reference.
