Applying 'show hidden files' deletes are files and subfiles

When I enable 'show hidden files' in a certain location, it deletes all the files and sub files in that location. I had this problem with my old computer and I cant imagine why im having it now. My computer is also dual booted with ubuntu and it has, in the past, deleted random files from there as well. I honestly have no idea what is causing it and its almost impossible to find results on google because it thinks im asking how to show hidden files that HAVE been deleted. Thanks in advance!