---
title: "clearYearDaySchedule(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterdoorlock/clearyeardayschedule(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# clearYearDaySchedule(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func clearYearDaySchedule(with params: MTRDoorLockClusterClearYearDayScheduleParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func clearYearDaySchedule(with params: MTRDoorLockClusterClearYearDayScheduleParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
