lcFolder = ADDBS(...) *--- WSH --- loFso = CREATEOBJECT("Scripting.FileSystemObject") loFso.DeleteFile(lcFolder + "Thumbs.db",.T.) *--- WIN API --- DECLARE LONG DeleteFile IN WIN32API String IF DeleteFile( lcFolder + "Thumbs.db" ) = 0 * Failed. Use GetLastError to get the error code ENDIFCheck also How to change file attributes programmatically FAQ #15763