---
title: STWebHistory
framework: Screen Time
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+]
path: screentime/stwebhistory
---

# STWebHistory

The object you use to delete web-usage data.

## Declaration

```swift
class STWebHistory
```

## Overview

Overview This class provides an easy way for you to delete web history, including: All history History associated to a specific URL History during a specific time interval

## Topics

### Initializers

- [init(bundleIdentifier:)](screentime/stwebhistory/init(bundleidentifier:).md)
- [init(bundleIdentifier:profileIdentifier:)](screentime/stwebhistory/init(bundleidentifier:profileidentifier:).md)
- [init(profileIdentifier:)](screentime/stwebhistory/init(profileidentifier:).md)

### Instance methods

- [deleteAllHistory()](screentime/stwebhistory/deleteallhistory().md)
- [deleteHistory(during:)](screentime/stwebhistory/deletehistory(during:).md)
- [deleteHistory(for:)](screentime/stwebhistory/deletehistory(for:).md)

### Structures

- [STWebHistory.ProfileIdentifier](screentime/stwebhistory/profileidentifier.md)

### Instance Methods

- [fetchAllHistory(completionHandler:)](screentime/stwebhistory/fetchallhistory(completionhandler:).md)
- [fetchHistory(during:completionHandler:)](screentime/stwebhistory/fetchhistory(during:completionhandler:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
