# Remove(TKey)

> Removes a key-value pair.

## Definition

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

## Remove(T)

```csharp
public bool Remove(TKey key)
```

### Parameters

**** (T): The key to remove.

### Returns

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