deleteAllFilesButton optimization