Delete files imminently after downloading

Delete files imminently after downloading. This stops double downloading if you delete a file before the script runs for a second time