Code Blocks .exe .o file remover

Just copy these code and save as .py extension
Then execute the python program.


import sys
import os
from os import listdir
​
test=os.listdir()
​
for item in test:
if item.endswith(".o") or item.endswith('.exe'):
os.remove(item)

0 Comments