---
title: deleteAllHistory()
framework: Screen Time
role: symbol
role_heading: Instance Method
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+]
path: screentime/stwebhistory/deleteallhistory()
---

# deleteAllHistory()

Deletes all web history associated with the bundle identifier you specified during initialization.

## Declaration

```swift
func deleteAllHistory()
```

## See Also

### Instance methods

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