Share via


Deleting Certificate Examples for OMA DM

4/8/2010

The following examples show how to delete one or more certificates by using OMA DM.

Code Example

Description

This example shows how to delete a certificate by using OMA DM.

Code

<Delete>
   <CmdID>1</CmdID> 
   <Item>
      <Target>
         <LocURI>./Vendor/MSFT/CertificateStore/SPC/{hash of the certificate}</LocURI> 
      </Target>
   </Item>
</Delete>

Code Example

Description

This example shows how to delete all certificates in the current user (HKCU) Software Publishing Certificate (SPC) logical certificate store.

Code

<Delete>
   <CmdID>1</CmdID>
   <Item>
      <Target>
         <LocURI>./Vendor/MSFT/CertificateStore/SPC/User</LocURI>
      </Target>
   </Item>
</Delete>

Remarks

One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the SyncBody node in an OMA DM provisioning file. For more information about the syntax of the provisioning file, see OMA DM Provisioning Files.

See Also

Other Resources

CertificateStore Configuration Service Provider Examples for OMA DM