IMSAdminBase::DeleteAllData

The IMSAdminBase::DeleteAllData method deletes all or a subset of local data associated with a particular key.

HRESULT DeleteAllData(
  METADATA_HANDLE hMDHandle,  //metabase handle
  LPCWSTR pszMDPath,          //path to the key, relative to hMDHandle
  DWORD dwMDUserType,         //user type of the data
  DWORD dwMDDataType          //data type of the data
);
 

Parameters

hMDHandle
Specifies a handle to the metabase.
pszMDPath
Specifies the path of the key with which the data to be deleted is associated, relative to the path of hMDHandle. For example, if the handle references the /LM key, you could specify the Web services subkey using the path /W3SVC.
dwMDUserType
Specifies the user type of the data to delete. If not set to ALL_METADATA, only data of the specified user type will be deleted.
dwMDDataType
Specifies the data type of the data to delete. If not set to ALL_METADATA, only data of the specified data type will be deleted.

Remarks

The IMSAdminBase::DeleteAllData method only deletes data local to the specified key. Any data that the specified key inherits from keys higher in the metabase is not deleted.

This method can affect subkeys of the specified object if those subkeys inherit data from the key specified in the IMSAdminBase::DeleteAllData call.