IBitsPeerCacheAdministration::DeleteUrl method (bits3_0.h)

Deletes all cache records and the file from the cache for the given URL.

Syntax

HRESULT DeleteUrl(
  [in] LPCWSTR url
);

Parameters

[in] url

Null-terminated string that contains the URL of the file whose cache records and file you want to delete from the cache.

Return value

The method returns the following return values.

Return code Description
S_OK
Success
S_FALSE
The URL does not exist.
BG_E_BUSYCACHERECORD
The cache record is in use and cannot be changed or deleted. Try again after a few seconds.

Remarks

The cache records for the file are not removed until all current activity with the cache records is complete.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header bits3_0.h (include Bits.h)
Library Bits.lib

See also

IBitsPeerCacheAdministration

IBitsPeerCacheAdministration::DeleteRecord