I'm trying to figure out the best way to delete a directory without waiting for it to complete. I have code that does this, but when there are lots of subdirectories and files it takes a long time to complete. Once I've started the delete I'd like the rest of the program to continue without waiting. What is the best way to do this?
For more complete information about compiler optimizations, see our Optimization Notice.