# RemoveButton

{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```csharp
using UnityEngine;

public class RadialMenuExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateRadialMenu radialMenu;

	void Update ()
	{
		// If the space bar has been pressed...
		if( Input.GetKeyDown( KeyCode.Space ) )
		{
			// Remove the button at the end of the menu.
			radialMenu.RemoveButton( radialMenu.UltimateRadialButtonList.Count - 1 );
		}
	}
}
```

{% endcode %}
