Avoiding the creation of .aux, .log and .synctex.gz files when using pdflatex [closed] June 5, 2023 by Tarik latexmk -c will remove the unnecessary files. latexmk is a great way to manage the compile too!