I am trying to ease my work by creating a script to do what I manually do every week:

I have a .txt file with .png file names: 230.png 34.png . .

I would like to read the txt file (solved) then to search the files on my system (for eg. "/pictures/new/"), extract the file path (for eg. "/pictures/new/230.png") and then to delete those results / files.

It would help me a lot to solve this.

I am 1/4 through the Begginer's Lama book so I need some help with this to reach the deadline.