How do I delete a folder and it's contents, without putting them in the recycle bin?

前端 未结 1 1516
你的背包
你的背包 2021-01-13 02:53

I am creating a program to run file I/O stress on a drive and when it is done, I want to delete the files, but don\'t want to put them in the recycle bin. Here is the code I

相关标签:
1条回答
  • 2021-01-13 03:25

    You are looking for FileSystem.DeleteDirectory Method (String, UIOption, RecycleOption)

    recycle

    Specifies whether or not the deleted file should be sent to the Recycle Bin. Default is RecycleOption.DeletePermanently.

    0 讨论(0)
提交回复
热议问题