---
title: WKWebsiteDataRecord
framework: webkit
role: symbol
role_heading: Class
path: webkit/wkwebsitedatarecord
---

# WKWebsiteDataRecord

A record of the data that a particular website stores persistently.

## Declaration

```swift
@MainActor class WKWebsiteDataRecord
```

## Overview

Overview Use WKWebsiteDataRecord objects to discover the types of information that a website stores. Records identify the data types a website stores, but don’t identify the actual data. You might use this information to help the user manage website data. For example, Safari provides a way for users to view and remove website data. The domain name of each record contains the website’s domain name and suffix. You don’t create WKWebsiteDataRecord objects directly. WebKit creates these records and stores them in the web view’s data store. Use the fetchDataRecords(ofTypes:completionHandler:) of that data store to retrieve the current record objects. You also use that object to remove unwanted records.

## Topics

### Getting the Record Information

- [displayName](webkit/wkwebsitedatarecord/displayname.md)

### Getting the Data Type

- [dataTypes](webkit/wkwebsitedatarecord/datatypes.md)
- [Data Store Record Types](webkit/data-store-record-types.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)
- [Sendable](swift/sendable.md)

## See Also

### Web data management

- [WKWebsiteDataStore](webkit/wkwebsitedatastore.md)
- [WKHTTPCookieStore](webkit/wkhttpcookiestore.md)
- [WKURLSchemeHandler](webkit/wkurlschemehandler.md)
- [WKURLSchemeTask](webkit/wkurlschemetask.md)
- [readAccessURL](foundation/nsattributedstring/documentreadingoptionkey/readaccessurl.md)
