# IPropertySetStorage::Delete

Deletes one of the property sets contained in the property set storage object.

HRESULT Delete(

REFFMTID fmtid | //Format identifier of the property set to be deleted.
); |

Parameters

fmtid
  [in] Format identifier of the property set to be deleted.

Return Values

This method supports the standard return value E_UNEXPECTED, as well as the following:

S_OK
  The property set was successfully deleted.
STG_E_FILENOTFOUND
  The specified property set does not exist.
STG_E_ACCESSDENIED
  The requested access to the property set storage object has been denied.
STG_E_INSUFFICIENTMEMORY
  There is not sufficient memory to perform this operation.
STG_E_INVALIDPARAMETER
  The parameter is invalid.

Remarks

IPropertySetStorage::Delete deletes the property set specified by its format identifier. Specifying a property set that does not exist returns an error. Open substorages and streams (opened through one of the storage- or stream-valued properties) are put into the reverted state.