try {
HashMap<String, String> params = new HashMap<String, String>();
params.put("root", "dropbox");
rowId = URLDecoder.decode(rowId, "UTF-8");
params.put("path", rowId);
ClientService svc = createClientService(authBean, ExtLibUtil.concatPath(getDropBoxApiVersion(authBean), "fileops/delete", '/'));
svc.post(getDropBoxApiVersion(authBean)+"/fileops/delete", params,null);
} catch (ClientServicesException e) {
throw new FacesExceptionEx(e, "Failed to delete file with ID \'{0}\'", rowId);
} catch (UnsupportedEncodingException e) {
throw new FacesExceptionEx(e, "Failed to delete file with ID \'{0}\'", rowId);