# unbindItem

> Callback for unbinding a data item from the VisualElement.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public Action<VisualElement, int> unbindItem { get; set; }
```

### Remarks

The method called by this callback receives the VisualElement to unbind, and the index of the element to unbind it from.

**Note:**: Setting this callback without also setting [\_bindItem](/engine/6000.5/script-reference/unityengine/uielements/treeview/binditem.md) might cause unexpected behavior. This is because the default implementation of bindItem expects the default implementation of unbindItem.
