# ui.Map.remove

<br />

Removes the given item from the map, if it exists.

<br />

Returns the removed item or null if it hadn't been added to the map.

| Usage | Returns |
|---|---|
| `Map.remove(item)` | Object |

| Argument | Type | Details |
|---|---|---|
| this: `ui.map` | ui.Map | The ui.Map instance. |
| `item` | Object | The item to remove. |