code: public PurgeResponse purgeDirectory(String directory) {
          return purge(new PurgeRequest().addTask(new PurgeTask().withDirectory(directory)));
      }
docs: Post purge request
  
  @param directory The directory to be purged.
  @return Result of the purge operation returned by the service.