@PATCH public void patchObjects(List<APIPatch<String>> patches) throws GuacamoleException {
  for (  APIPatch<String> patch : patches) {
    if (patch.getOp() != APIPatch.Operation.remove)     throw new GuacamoleUnsupportedException("Only the \"remove\" " + "operation is supported.");
    String path=patch.getPath();
    if (!path.startsWith("/"))     throw new GuacamoleClientException("Patch paths must start with \"/\".");
    directory.remove(path.substring(1));
  }
}

@ PATCH public void patchObjects ( List < APIPatch < String > > patches ) throws GuacamoleException { for ( APIPatch < String > patch : patches ) { if ( patch . getOp ( ) != APIPatch . Operation . remove ) throw new GuacamoleUnsupportedException ( "Only the \"remove\" " + "operation is supported." ) ; String path = patch . getPath ( ) ; if ( ! path . startsWith ( "/" ) ) throw new GuacamoleClientException ( "Patch paths must start with \"/\"." ) ; directory . remove ( path . substring ( 1 ) ) ; } }
applies the given object patches , updating the underlying directory accordingly . this operation currently only supports deletion of objects through the " remove " patch operation . the path of each patch operation is of the form " / id " where id is the identifier of the object being modified .
