# DeleteChangeSets(ChangeSets)

> Starts a task that will attempt to delete the given changesets.

## Definition

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

```csharp
public static Task DeleteChangeSets(ChangeSets changesets)
```

### Parameters

**** (\[ChangeSets]\(/engine/6000.6/script-reference/unityeditor/versioncontrol/changesets)): List of changetsets to delete.

### Returns

| Type                                                                       | Description |
| -------------------------------------------------------------------------- | ----------- |
| [Task](/engine/6000.6/script-reference/unityeditor/versioncontrol/task.md) |             |

### Remarks

Before the task can delete all of the given changesets, they must be empty.
