Why are you trying to do that? You should do this instead!
To be fair, there are a lot of “XYZ” problems on Stack Overflow where someone’s missing the point with the problem they’re trying to solve.
“I need my script to delete my file, but I can’t figure out the pathing so I delete random files until the correct one is gone. However, it’s slow – how do I speed my script up when deleting random files?”