# remove

> This document is the Markdown version of [formisch.dev/methods/api/remove/](https://formisch.dev/methods/api/remove/). For the complete documentation index, see [llms.txt](https://formisch.dev/llms.txt).

Removes an item from a field array at the specified index. All items after the removed index are shifted down by one.

```ts
remove<TSchema, TFieldArrayPath>(form, config);
```

## Generics

- `TSchema` `extends FormSchema`
- `TFieldArrayPath` `extends RequiredPath`

## Parameters

- `form` `BaseFormStore<TSchema>`
- `config` `RemoveConfig<TSchema, TFieldArrayPath>`

### Explanation

The `form` parameter is the form store containing the field array. The `config` parameter specifies the path to the field array and the index of the item to remove.

## Related

### Primitives

[`useForm`](/react/api/useForm.md), [`useFieldArray`](/react/api/useFieldArray.md)

### Methods

[`insert`](/methods/api/insert.md), [`move`](/methods/api/move.md), [`replace`](/methods/api/replace.md), [`swap`](/methods/api/swap.md)
