Deleting pdfs until it works