I am trying to run write a program in Python where it reads paths from a text file and deletes all the files which are listed within it each one.
The text files contain the complete path of the files with each file path on new line. i.e.:
/mnt/1/a.jpg
/mnt/1/b.jpg
Not sure how can I do this.