> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# array_remove

> Removes an element from an array.

Removes an element from an array.

## Syntax

```Haskell theme={null}
array_remove(any_array, any_element)
```

## Parameters

* `any_array`: the array to be searched.
* `any_element`: an expression that matches the element in an array.

## Return value

Returns the array from which specified element has been removed.

## Examples

```plaintext theme={null}
mysql> select array_remove([1,2,3,null,3], 3);

+---------------------------------+

| array_remove([1,2,3,NULL,3], 3) |

+---------------------------------+

| [1,2,null]                      |

+---------------------------------+

1 row in set (0.01 sec)
```

## Keywords

ARRAY\_REMOVE, ARRAY


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.