When I do
latexmk -c foo.tex, latexmk cleans up as expected. I tried to configure latexmkrc so that this would happen automatically. Here's my latexmkrc file:
$pdf_mode = 1; $silent = 1; $cleanup_mode = 2;
However, when I run latexmk, all of the other files (
foo.log, foo.aux, etc) are still there. What am I doing wrong?