public PurgeResponse purgeDirectory(String directory) {
        return purge(new PurgeRequest().addTask(new PurgeTask().withDirectory(directory)));
    }
public PurgeResponse purgeDirectory ( String directory ) { return purge ( new PurgeRequest ( ) . addTask ( new PurgeTask ( ) . withDirectory ( directory ) ) ) ; }
Post purge request

@param directory The directory to be purged.
@return Result of the purge operation returned by the service.