---
title: "resetCounts(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthreadnetworkdiagnostics/resetcounts(with:completion:)"
---

# resetCounts(with:completion:)

## Declaration

```swift
func resetCounts(with params: MTRThreadNetworkDiagnosticsClusterResetCountsParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func resetCounts(with params: MTRThreadNetworkDiagnosticsClusterResetCountsParams?) async throws
```
