I've been a fool.
I've written a python script that's supposed to create a folder at ~/photos and then write some files to it. However, instead of this it created a folder in my working directory called '~'. (including the 's).
I foolishly stormed ahead with an rm -rf ~ and hit enter before thinking. After spending the last few hours recovering I've ran the python script again and once again I'm faced with a folder named '~'.
Too terrified to run any command to remove it, I've come here to ask: How do I delete this folder safely? Am I safe to run rm -r '~'? (with the 's)