<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ScreenTime",
  "identifier" : "/documentation/ScreenTime/STWebHistory/init(profileIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Screen Time"
    ],
    "preciseIdentifier" : "c:objc(cs)STWebHistory(im)initWithProfileIdentifier:"
  },
  "title" : "init(profileIdentifier:)"
}
-->

# init(profileIdentifier:)

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

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

## Parameters

`profileIdentifier`

The identifier of the current browsing profile.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)