<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKContentRuleListStore/removeContentRuleList(forIdentifier:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKContentRuleListStore(im)removeContentRuleListForIdentifier:completionHandler:"
  },
  "title" : "removeContentRuleList(forIdentifier:completionHandler:)"
}
-->

# removeContentRuleList(forIdentifier:completionHandler:)

Removes a rule list from the current data store asynchronously.

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

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

- error: `nil` on success, or an error object if the store encountered an error when deleting the rule list.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)