# ClearSampleSettingOverride

> Clears the sample settings override for the given platform.

## Definition

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

## ClearSampleSettingOverride(string)

Clears the sample settings override for the given platform.

```csharp
public bool ClearSampleSettingOverride(string platform)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The platform for which to clear the overrides.See [BuildTargetGroup](/engine/6000.7/script-reference/unityeditor/buildtargetgroup.md) for the complete list of options and type the desired platform enum name in the form of a string.

### Returns

| Type                                                          | Description                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if any overrides were actually cleared. |

### Remarks

This reverts the given platform override sample override settings, making that platform use the defaultSampleSettings..

## ClearSampleSettingOverride(BuildTargetGroup)

Clears the sample settings override for the given platform.

```csharp
public bool ClearSampleSettingOverride(BuildTargetGroup platformGroup)
```

### Parameters

**** (\[BuildTargetGroup]\(/engine/6000.7/script-reference/unityeditor/buildtargetgroup)): The platform for which to clear the overrides.See [BuildTargetGroup](/engine/6000.7/script-reference/unityeditor/buildtargetgroup.md) for the complete list of options.

### Returns

| Type                                                          | Description                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if any overrides were actually cleared. |

### Remarks

This reverts the given platform override sample override settings, making that platform use the defaultSampleSettings..
