Man I thought we had it. I had tried reordering before and kept running into errors, but i think it was because i moved the delete function before the query. I ordered just as you suggested. No errors, but it still doesn't want to delete the files.
Updated file attached.