remove(forIdentifier:completionHandler:)
Removes the data store that matches the identifier you provide.
Declaration
class func remove(forIdentifier identifier: UUID, completionHandler: @escaping @MainActor @Sendable ((any Error)?) -> Void)class func remove(forIdentifier identifier: UUID) async throwsParameters
- identifier:
An identifier that uniquely identifies a data store.
- completionHandler:
A block the system invokes after it removes the data store. This block has no return value, and takes the following parameter:
- error
An error, if the system could not remove the data store.
Discussion
Call this method to remove the data store for the unique identifier. Release any WKWebView instances using the data store before you call this method. If the system cannot complete removal of the data store, this throws an error.