The function deletes all files in a specified folder.
[in] The name of the directory where you want to delete all files. Contains the full path to the folder.
[in] Flag determining the location of the directory. If common_flag = FILE_COMMON, then the directory is in the shared folder for all client terminals. Otherwise, the directory is in a local folder(MQL5\files or MQL5\tester\files in case of testing).
Returns true if successful, otherwise false.
For security reasons, work with files is strictly controlled in the MQL5 language. Files with which file operations are conducted using MQL5 means, cannot be outside the file sandbox.
This function should be used with caution, since all the files and all subdirectories are deleted irretrievably.