# destroyItem

> Obsolete. Use _destroyItem or _destroyItem instead.

## Definition

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

> **Warning:**
>
> **Deprecated.** destroyItem has been moved to ListView and TreeView. Use these ones instead.

```csharp
public Action<VisualElement> destroyItem { get; set; }
```
