Instance Method

removeData(ofTypes:for:completionHandler:)

Removes the specified types of website data from the given data records.

Declaration

func removeData(ofTypes dataTypes: Set<String>, for dataRecords: [WKWebsiteDataRecord], completionHandler: @escaping () -> Void)

Parameters

dataTypes

The website data types to be removed.

dataRecords

The data records to delete website data from.

completionHandler

The block to be invoked after the website data is removed.

See Also

Removing Specific Types of Data

func removeData(ofTypes: Set<String>, modifiedSince: Date, completionHandler: () -> Void)

Removes the specified types of data if the data was changed since the given date.