---
title: "clearWeeklySchedule(withExpectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterthermostat/clearweeklyschedule(withexpectedvalues:expectedvalueinterval:completionhandler:)"
---

# clearWeeklySchedule(withExpectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func clearWeeklySchedule(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func clearWeeklySchedule(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
