ensure the file is removed after