Skip to main content
Skip table of contents

Delete object

This article is valid from CM 8.0.

This article describes the syntax for how to delete an object. The hwsetup command line tool, included in Nexus Certificate Manager (CM), is used.

Syntax

Syntax: Delete object

TEXT
hwsetup -libname <pkcs11lib> [-slot <slot#>] [-pin <PIN>] [-nopinpad]
[-id <string>] [-label <string>] [-login user|so]
{-remove | -removeall | -removecerts}

Options and arguments

For a description of the options libnameslotpin, nopinpad, and login and their arguments, see Generate DSA/EC/RSA key pair.

Options and ArgumentsDescription
remove

Use remove to delete all objects for a given slot.

removeallUse removeall to delete all objects in the given slot.
removecert Use removecerts to delete the certificate objects for the given slot, id and label.
id <string>Delete the objects where the CKA_ID attribute contains the specified string, case insensitive string match.
label <string>Delete the objects where the CKA_LABEL attribute contains the specified string, case insensitive string match.

Examples

To delete all objects in a slot:

Example: Delete all objects in slot

TEXT
hwsetup -libname crypto -slot 1 -pin abcd -removeall

To delete the certificate objects for a given slot and id:

Example: Delete the certificate objects for given slot and id

TEXT
hwsetup -libname crypto -pin abcd -slot 1 -id mykey -removecerts
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.