# Unregister(VisualElement)

> Removes the value for the provided element for this argument identifier. Until a new value is set, a value can no longer be retrieved by callbacks that have a second argument of the same type.

## Definition

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

```csharp
public bool Unregister(VisualElement element)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.7/script-reference/unityengine/uielements/visualelement)): The element to unset a value for.

### Returns

| Type                                                          | Description                            |
| ------------------------------------------------------------- | -------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the arg was found and removed. |

### Remarks

If a callback is triggered on an element for which the expected argument value has not been set, that callback will be skipped and a warning will be printed.
