# DeleteProfile(string)

> Deletes profile with the given profile ID.

## Definition

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

```csharp
void DeleteProfile(string profileId)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): ID of profile to delete.

### Remarks

Throws `ArgumentNullException` if `profileId` is `null`. Throws `ArgumentException` if `profileId` is not avaliable, i.e. when [IShortcutManager.GetAvailableProfileIds](/engine/6000.6/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/getavailableprofileids.md) does not contain `profileId`. Throws `ArgumentException` if `profileId` is read-only, i.e. when [IShortcutManager.IsProfileReadOnly](/engine/6000.6/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/isprofilereadonly.md) returns `true` for `profileId`.
