# Sandbox.BaseInventoryComponent.Remove

```csharp
void Remove(BaseInventoryItem item)
```

Removes an item from the inventory and destroys it, then switches to the best remaining item.
Routed through the host.

### Parameters

- `item` (`BaseInventoryItem`)

Declared in [Sandbox.BaseInventoryComponent](/api/Sandbox.BaseInventoryComponent).
Assembly: `Sandbox.Engine`.
