DeleteUrlCacheEntry function

Removes the file associated with the source name from the cache, if the file exists.

Syntax

BOOLAPI DeleteUrlCacheEntry(
  LPCSTR lpszUrlName
);

Parameters

lpszUrlName

Pointer to a string that contains the name of the source that corresponds to the cache entry.

Return Value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError. Possible error values include the following.

Return code Description
ERROR_ACCESS_DENIED
The file is locked or in use. The entry is marked and deleted when the file is unlocked.
ERROR_FILE_NOT_FOUND
The file is not in the cache.

Remarks

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
 

Requirements

   
Windows version Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wininet.h
Library Wininet.lib
DLL Wininet.dll

See Also

Caching

WinINet Functions