removeContentRuleList(forIdentifier:completionHandler:)
Removes a rule list from the current data store asynchronously.
Declaration
func removeContentRuleList(forIdentifier identifier: String!, completionHandler: (((any Error)?) -> Void)!)func removeContentRuleList(forIdentifier identifier: String!) async throwsParameters
- 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
nilon 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.