---
title: "remove(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkusercontentcontroller/remove(_:)"
---

# remove(_:)

Removes the specified rule list from the content controller object.

## Declaration

```swift
func remove(_ contentRuleList: WKContentRuleList)
```

## Parameters

- `contentRuleList`: The rule list to remove.

## Discussion

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

## See Also

### Adding and Removing Content Rules

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