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

# resetCounts(with:completionHandler:)

## Declaration

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

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