Trying to remove all of the files in a certain directory gives me the follwing error:
OSError: [Errno 2] No such file or directory: \'/home/me/test/*\
Another way I've done this:
os.popen('rm -f ./yourdir')