class FileSystemUtils {

    static Consumer<Path> deleteFile() {
        return pathFile -> {
            try {
                Files.delete(pathFile);
            } catch (IOException e) {
                throw new TDPException(UNABLE_TO_REMOVE_FOLDER_ENTRY, e, build().put("path", pathFile));
            }
        };
    }

    private  FileSystemUtils();

}