---
title: "reset(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlindirectcommandbuffer/reset(_:)"
---

# reset(_:)

Resets a range of commands to their default state.

## Declaration

```swift
func reset(_ range: Range<Int>)
```

## Parameters

- `range`: The range of commands to reset. The range needs to fit inside the indirect command buffer’s extents.
