---
title: "init(bundleIdentifier:)"
framework: Screen Time
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+]
path: "screentime/stwebhistory/init(bundleidentifier:)"
---

# init(bundleIdentifier:)

Creates a web history instance to delete web-usage data associated to the bundle identifier you specify.

## Declaration

```swift
init(bundleIdentifier: String) throws
```

## Parameters

- `bundleIdentifier`: The bundle identifier.

## Discussion

Discussion The default value for bundleIdentifier is Bundle.main.bundleIdentifier. This is the recommended identifier to use, except for example, if a helper process is presenting web UI and you want to group that web-usage under the main app’s bundle identifier.
