docs: public void deleteResource(String resourceName, String exportpoint) {
  
          File file = getExportPointFile(resourceName, exportpoint);
          if (file.exists() && file.canWrite()) {
              // delete the file (or folder)
              file.delete();
              // also delete empty parent directories
              File parent = file.getParentFile();
              if (parent.canWrite()) {
                  parent.delete();
              }
          }
      }