<!--
{
  "availability" : [
    "*: -",
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AssistantSchemas/BrowserEnum/clearHistoryTimeFrame",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents16AssistantSchemasO11BrowserEnumPAAE21clearHistoryTimeFrameQrvp"
  },
  "title" : "clearHistoryTimeFrame"
}
-->

# clearHistoryTimeFrame

The time frame for clearing the browser history

```
var clearHistoryTimeFrame: some AssistantSchemas.Enum { get }
```

## Overview

Use Swift macros that generate additional properties and add protocol conformance
for your app enum implementation. The following example shows an app enum that conforms to the `.browser.clearHistoryTimeFrame` schema:

```swift
@AppEnum(schema: .browser.clearHistoryTimeFrame)
enum ClearHistoryTimeFrame: AppEnum {

    case today
    case lastFourHours
    case todayAndYesterday
    case allTime

    static var caseDisplayRepresentations: [ClearHistoryTimeFrame: DisplayRepresentation] = [
        .today: "Today",
        .lastFourHours: "Last 4 hours",
        .todayAndYesterday: "Today and Yesterday",
        .allTime: "Beginning of time",
    ]

    static var typeDisplayName: LocalizedStringResource = "Clear History Timeframe"
}
```

For more information about the `.browser` app intent domain, see [Browser](/documentation/AppIntents/app-schema-domain-browser).
For general information about app intent domains, see [Making actions and content discoverable by Apple Intelligence](/documentation/AppIntents/making-actions-and-content-discoverable-by-apple-intelligence).

---

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)