delete file variables when selecting new files and clearing old ones