code: public static void deleteFilePath(FilePath workspace, String path) throws IOException {
          if (StringUtils.isNotBlank(path)) {
              try {
                  FilePath propertiesFile = new FilePath(workspace, path);
                  propertiesFile.delete();
              } catch (Exception e) {
                  throw new IOException("Could not delete temp file: " + path);
              }
          }
      }
docs: Deletes a FilePath file.
  
  @param workspace The build workspace.
  @param path      The path in the workspace.
  @throws IOException In case of missing file.