For some reason, python doesn\'t seem to recognize my wildcard command using *.r. A MWE:
filepath = "C:/outputs" os.remove(f\'{filepath}/*.r\')