# ClearShortcutOverride(string)

> Clears the binding for shortcut with given shortcut ID from the active profile.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.ShortcutManagement](/engine/6000.7/script-reference/unityeditor/shortcutmanagement.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
void ClearShortcutOverride(string shortcutId)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): ID of shortcut to clear override for.

### Remarks

Throws `ArgumentNullException` if `shortcutId` is `null`. Throws `InvalidOperationException` if the active profile is read-only, i.e. when IsReadOnlyProfile returns `true` for [IShortcutManager.activeProfileId](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/activeprofileid.md). Throws `InvalidArgumentException` when `shortcutId` is not an available shortcut ID, i.e. when [IShortcutManager.GetAvailableShortcutIds](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/getavailableshortcutids.md) does not contain `shortcutId`.
