# remove_reference()

Removes the specified slot's reference. The reference's nodes, layers, and SelectionSets are deleted from the scene.

### Signature
```python
api.remove_reference(slot: int) -> dict
```

### Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| `slot` | `int` | Slot number to remove (0-9) |

### Return Value
```python
{
    "success": True,
    "message": str,
}
```

### Errors
| Error | Cause |
| --- | --- |
| `TypeError` | slot is not int (including bool) [v2 added] |
| `ValueError` | Slot number is invalid or empty |

### Example
```python
from os_fast_ref.api import FastRefAPI

api = FastRefAPI()
result = api.remove_reference(slot=2)
print(result['message'])  # e.g. "Reference removed from slot 2"
```
> **Note:** No confirmation dialog is shown. Always verify the slot before calling.

---