# Remove<T, U>(ref FixedList128Bytes<T>, U)

> Removes the first occurrence of a particular value in this list.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## Remove\<T, U>(FixedList128Bytes\<T>, T)

```csharp
public static bool Remove<T, U>(this ref FixedList128Bytes<T> container, U value) where T : unmanaged, IEquatable<U>
```

### Parameters

**** (\[FixedList128Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist128bytes1)): The list to search.**** (T): The value to locate and remove.

### Returns

| Type                                                          | Description                              |
| ------------------------------------------------------------- | ---------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the value was found and removed. |

### Remarks

If a value is removed, all elements after it are shifted down by one, and the list's length is decremented by one.

If you don't need to preserve the order of the remaining elements, [FixedList128BytesExtensions.RemoveSwapBack](/engine/6000.7/script-reference/unity/collections/fixedlist128bytesextensions/removeswapback.md) is a cheaper alternative.
