static public function removeAcl(Fedora $fedora, bool $verbose = true) {
        echo $verbose ? "removing ACL rules\n" : '';

        $fedora->rollback();

        $fedora->begin();
        $resp = $fedora->getResourcesByProperty('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/ns/auth/acl#Authorization');
        foreach ($resp as $k => $rule) {
            echo $verbose ? "  removing rule " . ($k + 1) . "/" . count($resp) . "\n" : '';
            $rule->delete(true);
        }
        $fedora->commit();

        $fedora->begin();
        $resp = $fedora->getResourcesByProperty('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://fedora.info/definitions/v4/webac#Acl');
        foreach ($resp as $k => $rule) {
            if ($rule->getUri(true) === 'https://fedora.localhost/rest/acl') {
                continue;
            }
            echo $verbose ? "  removing ACL " . ($k + 1) . "/" . count($resp) . "\n" : '';
            $rule->delete(true, true);
        }
        $fedora->commit();

        $fedora->begin();
        $resp = $fedora->getResourcesByProperty('http://www.w3.org/ns/auth/acl#accessControl');
        foreach ($resp as $k => $res) {
            if ($res->getUri(true) === 'https://fedora.localhost/rest/') {
                continue;
            }
            echo $verbose ? "  removing ACL link " . ($k + 1) . "/" . count($resp) . "\n" : '';
            $meta = $res->getMetadata();
            $meta->delete('http://www.w3.org/ns/auth/acl#accessControl');
            $res->setMetadata($meta);
            $res->updateMetadata(FedoraResource::OVERWRITE);
        }
        $fedora->commit();

        echo $verbose ? "  ended\n" : '';
        $fedora->__refreshCache(); // make all cached FedoraResource object aware of the changes made
    }