I have to delete root directory but some files open then it gives error "the process cannot access the file because it is being used by another process".
So, how to delete the directory when some files in open mode (I know using for each loop single file delete when it's open mode but I have to delete directory without for each loop.)