<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NotificationCenter",
  "identifier" : "/documentation/NotificationCenter/NCWidgetSearchViewDelegate/widgetSearchTermCleared(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Notification Center"
    ],
    "preciseIdentifier" : "c:objc(pl)NCWidgetSearchViewDelegate(im)widgetSearchTermCleared:"
  },
  "title" : "widgetSearchTermCleared(_:)"
}
-->

# widgetSearchTermCleared(_:)

Tells the delegate that a user cleared the search field.

```
func widgetSearchTermCleared(_ controller: NCWidgetSearchViewController)
```

## Parameters

`controller`

The widget’s search view controller.

## Discussion

When the delegate receives this message, it should stop the current search.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)