# array.delete()

Deletes specified object from given array

```
array.delete( value=object, scope=string )
```

**Returns:** array

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| value | object | Yes | The value to delete |  |
| scope | string | No | one: replaces the first occurrence (default) all: replaces all occurrences |  |

# Examples

```cfml
array = ["one","two","THREE","three","four","five","Five"];
writeDump(array.delete("three"));
writeDump(array.delete("THREE"));
writeDump(array.delete("FIVE"));
writeDump(array.delete("six"));
```

# Categories

[Arrays](../../../categories/array.md)

# See Also

[ArrayDelete()](../../functions/arraydelete.md), [Array](../array.md)