public void deletePollingScheme(String objectName) {
        String objectPath;
        Folder schemeFolder;
        objectPath = "/PollingSchemes/" + objectName;
        try {
            schemeFolder = (Folder) session.getObjectByPath(objectPath);
            ItemIterable<CmisObject> children = schemeFolder.getChildren();
            for (CmisObject o : children) {
                FileableCmisObject child = (FileableCmisObject) o;
                child.removeFromFolder(schemeFolder);
            }
            schemeFolder.delete(true);
        } catch (CmisObjectNotFoundException e) {
            System.out.println("Object not found: " + objectPath);
        } catch (CmisConstraintException e) {
            System.out.println("Could not delete '" + objectPath + "': "
                    + e.getMessage());
        }
    }