---
title: clearHistoryTimeFrame
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/assistantschemas/browserenum/clearhistorytimeframe
---

# clearHistoryTimeFrame

The time frame for clearing the browser history

## Declaration

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

## Overview

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: @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 doc:Making-browser-actions-available-to-siri-and-apple-intelligence. For general information about app intent domains, see doc:Integrating-actions-with-siri-and-apple-intelligence.
