presto-hive/src/main/java/io/prestosql/plugin/hive/SortingFileWriter.java/SortingFileWriter/rollback
class SortingFileWriter:    @Override
    public void rollback()
    {
        for (TempFile file : tempFiles) {
            cleanupFile(file.getPath());
        }

        outputWriter.rollback();
    }