---
title: removeAllContentRuleLists()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/wkusercontentcontroller/removeallcontentrulelists()
---

# removeAllContentRuleLists()

Removes all rules lists from the content controller.

## Declaration

```swift
func removeAllContentRuleLists()
```

## Discussion

Discussion This method removes the rule lists only from the user content controller object. You can still access rule lists from the WKContentRuleListStore objects you used to create them.

## See Also

### Adding and Removing Content Rules

- [add(_:)](webkit/wkusercontentcontroller/add(_:).md)
- [remove(_:)](webkit/wkusercontentcontroller/remove(_:).md)
- [WKContentRuleList](webkit/wkcontentrulelist.md)
