Store.Delete method

[The Delete method is available for use in the operating systems specified in the Requirements section. Instead, use the X509Store Class in the System.Security.Cryptography.X509Certificates namespace.]

The Delete method deletes the certificate store that is represented by the current Store object. This method deletes only nonsystem stores.

Syntax

Store.Delete()

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

The following stores are system stores and cannot be deleted:

  • My
  • Root
  • Trust
  • CA
  • UserDS
  • TrustedPublisher
  • Disallowed
  • AuthRoot
  • TrustedPeople

The Delete method returns an error if called from a web script.

Requirements

Requirement Value
Redistributable
CAPICOM 2.1 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

Store

Cryptography Objects