Delete multiple files in the specified path.
int ocu_delete_files( LPCSTR lpcszPath, LPCSTR lpcszNamePattern = NULL, StringArray * pcsaFileSkip = NULL )
number of files deleted, or < 0 for errors
//Notes: Deleted files can not be recovered, so be careful while using this method.
string strPath = GetAppPath(true) + "OriginC\\System\\";
int nNum = ocu_delete_files(strPath, "*.OPH"); //delete all files with extension name as OPH
if ( nNum < 0 )
out_str("Error occurs while trying to delete files.");
printf("%d files deleted under path %s\n", nNum, strPath);