First off, make a backup of any file you try this on,
because it's going to go bye-bye.
Open a python file. Change something in it. Hit 'x' (the
upper right thingy, on Windows) to close the program. It
will ask you if you want to save changes.
Click 'yes'. The program will close.
Your file will now be 0 KB.