# Remove(TKey)

> Removes a key-value pair.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/7000.0/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 the key was present and the key-value pair successfully removed, false if the key was not found. |
