# BuildHistoryLimit

> Maximum number of builds to retain in the build history.

## Definition

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

```csharp
public static int BuildHistoryLimit { get; set; }
```

### Remarks

When a new build pushes the count over this limit, the oldest entries are removed, where "oldest" is determined by the build start time recorded in each entry's [BuildReportSummary](/engine/6000.7/script-reference/unityeditor/build/buildreportsummary.md). Build folders copied in from another machine are subject to the same policy.

A value of 0 disables automatic deletion. Negative values are clamped to 0.

Changes take effect on the next build. The existing history isn't pruned when this value is changed.

This is a per-project setting that Unity stores in `UserSettings/BuildPipelineSettings.asset`. It's also exposed in **Project Settings** > **Build Pipeline**.

Additional Resources: [BuildHistory.ApplyRetentionPolicy](/engine/6000.7/script-reference/unityeditor/build/buildhistory/applyretentionpolicy.md)
