cleanup: prune old build logs

Closes #29231.