Now with correct support for deleting rules and permissions