Microsoft "certutil -delstore -user my ..." - Delete Certificate


How to delete a certificate from a certificate store with Microsoft "certutil" tool?



If you want to delete a certificate from a certificate store, you can use the Microsoft "certutil -delstore store_name certificate_id" command as shown in this tutorial:

C:\fyicenter>\windows\system32\certutil -delstore -user my "*"
Deleting Certificate 0
CertUtil: -delstore command completed successfully.

C:\fyicenter>\windows\system32\certutil -store -user my "*"
CertUtil: -store command FAILED: 0x80090011 (-2146893807)
CertUtil: Object was not found.

As you can see from the output, the command works successfully:

  • The specified certificate is deleted from the "my" certificate store at the "Current User" store location.
  • "-delstore" optin indicates a certificate to be deleted from a certificate store.
  • "-user my" option specifies "my" certificate store in the "Current User" store location to be used.
  • "*" option identifies the certificate to be deleted.


Other Microsoft "certutil" Commands

Microsoft "certutil -delstore" Command Options

Microsoft "certutil" Commands on Certificate Stores

⇑⇑ Microsoft "certutil" - Certificate Management Tool

2016-06-27, 139964🔥, 2💬