Hi @JSTInfo ,
As per my understanding there may be 2 reasons,
1. There might be a process that is still using a file within the directory. This could prevent the directory from being deleted. Make sure no files in the directory are open or being used by another process.
2.There could be a permissions issue preventing the deletion of some files within the directory. Ensure that the account running the flow has sufficient permissions to delete all files and subdirectories within the directory.
The directory might contain hidden or system files that are not being deleted. Check the directory for such files.
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy