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
);
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.