Here is my code:
import subprocess
subprocess.call("rm /home/winpc/Desktop/test.html", shell=True)
This code working properly.I need to do the following change.
file_name="test.html"
dir_path="/home/winpc/Desktop"
I need to remove above file test.html using the variables above mentioned.How can I do that.