CWebStorage::DeleteObject Method  
 
BOOL DeleteObject(
  LPCTSTR lpszObjectLabel  
);

The DeleteObject method deletes an object from the storage container.

Parameters

lpszObjectLabel
A null-terminated string which specifies the label of the object to be deleted.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, the return value is zero. To get extended error information, call the GetLastError method.

Remarks

The DeleteObject method permanently deletes the storage object and its associated data from the server. Deleted objects cannot be recovered by the application. To remove all objects stored in the container, use the ResetStorage method.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cswebv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also