1 2 3 4 5
import os fhandle = open("install_log.txt","r") for line in fhandle.readlines(): print("deleting ", line[:-1]) os.system("rm -f "+line[:-1])