---
title: "removeContentRuleList(forIdentifier:completionHandler:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkcontentruleliststore/removecontentrulelist(foridentifier:completionhandler:)"
---

# removeContentRuleList(forIdentifier:completionHandler:)

Removes a rule list from the current data store asynchronously.

## Declaration

```swift
func removeContentRuleList(forIdentifier identifier: String!, completionHandler: (((any Error)?) -> Void)!)
```

```swift
func removeContentRuleList(forIdentifier identifier: String!) async throws
```

## Parameters

- `identifier`: The unique identifier for the rule list.
- `completionHandler`: A completion handler block to call after the removal of the content rule list. This block has no return value and takes the following parameter:

## Discussion

Discussion This method also removes the persistent copy of the rules stored on disk.

## See Also

### Creating and Deleting Content Rule Lists

- [compileContentRuleList(forIdentifier:encodedContentRuleList:completionHandler:)](webkit/wkcontentruleliststore/compilecontentrulelist(foridentifier:encodedcontentrulelist:completionhandler:).md)
