Another strategy you can try is to send the file(s) in question to the recycling bin. Here is a variation on some of my code (retyped; apologies if there is a compile error):
bool FileToRecycleBin(const char* szFileIn)
{
char szFile[1030];
SHFILEOPSTRUCT op = {0};
strcpy_s(szFile, szFileIn);
szFile[strlen(szFile)+1] = '\0';
op.wFunc = FO_DELETE;
op.pFrom = szFile;
op.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_SILENT;
return 0 == SHFileOperation(&op);
}