class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean deletePolicy(String domainName, String policyName) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "deletePolicy");
        }
        if (domainStruct.getPolicies() != null) {
            domainStruct.getPolicies().remove(policyName);
            putDomainStruct(domainName, domainStruct);
        }
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}