---
title: "init(profileIdentifier:)"
framework: Screen Time
role: symbol
role_heading: Initializer
platforms: [iOS 18.4+, iPadOS 18.4+, Mac Catalyst 18.4+, macOS 15.4+]
path: "screentime/stwebhistory/init(profileidentifier:)"
---

# init(profileIdentifier:)

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

## Declaration

```swift
init(profileIdentifier: STWebHistory.ProfileIdentifier?)
```

## Parameters

- `profileIdentifier`: The identifier of the current browsing profile.

## Discussion

Discussion The default value for profileIdentifier is nil. This identifier can be used to delete browsing history for a specific profile. Using nil will only delete web history reported without a profile identifier.
