TSHFileOpStrUCt OpStruct;
char DelFile[128];
setmem(DelFile,128,'\0');
StrPCopy(DelFile,"C:\\temp");
OpStruct.hwnd=Handle;
OpStruct.wFunc=FO_DELETE;
OpStruct.pFrom=DelFile;
OpStruct.pTo=NULL;
OpStruct.fFlags=FOF_ALLOWUNDO;
OpStruct.hNameMappings=NULL;
OpStruct.lpszProgressTitle=NULL;
SHFileOperation(&OpStruct);