No. Your files are stored in the memory you are trying to clear, so wiping one necessarily takes the other with it.
What you can do is free up space rather than erase it: delete things you no longer need, move large files to an external drive or cloud storage, and uninstall unused programs. That reclaims room without a full wipe.