Prevent the files to be added to message when it has been deleted