---
title: clearHistory
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/appschema/browserintent/clearhistory
---

# clearHistory

An intent schema that clears history, and related cookies and other website data.

## Declaration

```swift
var clearHistory: some AppSchemaIntent { get }
```

## Discussion

Discussion To make your app’s actions available to Apple Intelligence, conform your AppIntent to a schema that describes your action to the system. If your app’s functionality aligns with the browser domain and one of your app’s actions matches the clearHistory schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the @AppIntent( .browser.clearHistory) Swift macro. To make your app work with Siri, see Apple Intelligence and Siri AI. The following example shows an intent that conforms to the clearHistory schema: @AppIntent(schema: .browser.clearHistory) struct ClearHistoryIntent {     var timeFrame: <#ClearHistoryTimeFrameEnum#>

func perform() async throws -> some IntentResult {         <#code#>     } } The schema supports the following system experiences: Shortcuts For more information about the App Intents framework and the experiences it supports, see Getting started with the App Intents framework.

## See Also

### Actions

- [bookmarkTab](appintents/appschema/browserintent/bookmarktab.md)
- [bookmarkURL](appintents/appschema/browserintent/bookmarkurl.md)
- [closeTabs](appintents/appschema/browserintent/closetabs.md)
- [closeWindows](appintents/appschema/browserintent/closewindows.md)
- [createTab](appintents/appschema/browserintent/createtab.md)
- [createWindow](appintents/appschema/browserintent/createwindow.md)
- [deleteBookmarks](appintents/appschema/browserintent/deletebookmarks.md)
- [findOnPage](appintents/appschema/browserintent/findonpage.md)
- [openBookmark](appintents/appschema/browserintent/openbookmark.md)
- [openURLInTab](appintents/appschema/browserintent/openurlintab.md)
- [switchTab](appintents/appschema/browserintent/switchtab.md)
- [AppSchema.BrowserIntent](appintents/appschema/browserintent.md)
