Revert "tmp_file_add"

This reverts commit 6d60e0b3aff603ae7ae8c721e28ec084c13b6873.