Instance Method

removeData(ofTypes:modifiedSince:completionHandler:)

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

Declaration

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

Parameters

websiteDataTypes

The website data types to be removed.

date

A date. All website data modified after this date is removed.

completionHandler

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

See Also

Removing Specific Types of Data

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

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