Was looking for a method to delete files using a wildcard. Came across this question which helped me out. I thought the accepted answer was easier to understand and that's the method I would prefer.
However, it looks like the answer which utilizes the glob
module is considerably more popular. What are the possible reasons for this? Is there an advantage that this method has over the accepted answer?