# ClearDirty(Object)

> Clear /target's/ dirty flag.

## Definition

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

```csharp
public static void ClearDirty(Object target)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)):&#x20;

### Remarks

Unity uses the dirty flag to find changed assets that must be saved to disk. Clear the dirty flag if you make changes to an asset that don't need to be saved, such as temporary changes that you subsequently revert.
