---
title: "remove(forIdentifier:completionHandler:)"
framework: webkit
role: symbol
role_heading: Type Method
path: "webkit/wkwebsitedatastore/remove(foridentifier:completionhandler:)"
---

# remove(forIdentifier:completionHandler:)

Removes the data store that matches the identifier you provide.

## Declaration

```swift
class func remove(forIdentifier identifier: UUID, completionHandler: @escaping @MainActor @Sendable ((any Error)?) -> Void)
```

```swift
class func remove(forIdentifier identifier: UUID) async throws
```

## Parameters

- `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:

## Discussion

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.
