# del statement

The del statement provides an alternate
to the delete() function for deleting a location
from a dynamic array.

## Syntax

```
del dyn.array< ac.exp{,vc.exp...{,sc.exp}}>
```

## Parameter(s)

| dyn.array | Dynamic array from which the specified attribute, value, or subvalue will be deleted. |
| --- | --- |
| ac.exp | Attribute to delete. |
| vc.exp | Value to delete. |
| sc.exp | Subvalue to delete. |

## Example(s)

This example deletes the value `red` from the dynamic array `colors`. The
reference to attribute 1 is required. The absence of attribute marks
in `colors` requires that it be treated as a single
attribute.

```
equ vm to char(253)
colors = "blue":vm:"green":vm:"red":vm:"yellow"
del colors<1,3>
```

## See also

- [delete() function](https://d3codex.com/pickbasic-flashbasic/delete-function/)
- [extract() function](https://d3codex.com/pickbasic-flashbasic/extract-function/)
- [ins statement](https://d3codex.com/pickbasic-flashbasic/ins-statement/)
- [insert() function](https://d3codex.com/pickbasic-flashbasic/insert-function/)
- [ereplace() function](https://d3codex.com/pickbasic-flashbasic/ereplace-function/)

---
Source: https://d3codex.com/pickbasic-flashbasic/del-statement/ - part of the D3Codex reference.
