Please use below sample script to clear windows event logs
Example: Clear windows application event logs
import os;
out=os.popen("wmic nteventlog where filename='application' cleareventlog").read();
print(out);
Sample output would be as below,
Please use below sample script to clear windows event logs
Example: Clear windows application event logs
import os;
out=os.popen("wmic nteventlog where filename='application' cleareventlog").read();
print(out);
Sample output would be as below,