DeleteDirectory()
Syntax
Result = DeleteDirectory(Directory$, Pattern$ [, Mode])Description
Deletes the specified Directory$. Warning, it's a very dangerous function so use it with care. If the Result is 0, the directory hasn't be fully deleted.
The 'Pattern$' should be a valid OS pattern. For example: "*.*" will delete any files in the directory. "*.exe" will delete only the .exe files. By default, a null Pattern$ ("") will delete all the files.
'Mode' is optional and can be a combination of the following values:#PB_FileSystem_Recursive: Deletes the directory with all subdirectories. #PB_FileSystem_Force : Deletes even the files which are protected (ReadOnly).
Supported OS
All