| Parameter | Description | Value |
|---|---|---|
| key-name | Specifies the name of an SM2 key pair that you want to destroy. | The value must be an existing SM2 key pair name. |
Usage Scenario
It is recommended that you run this command to destroy the specified SM2 key pair if it is leaked, damaged, unused or lost.
Prerequisites
The SM2 key pair has been created using the pki sm2 local-key-pair create command or the SM2 key pair has been imported to the memory using the pki import sm2-key-pair command.
# Destroy the SM2 key pair named abc.
<sysname> system-view [sysname] pki sm2 local-key-pair create abc Info: The name of the new key-pair will be: abc Generating key-pairs... [sysname] pki sm2 local-key-pair destroy abc Warning: The name of the key pair to be deleted is abc. Are you sure you want to delete the key pair? [y/n]:y Info: Succeeded in destroying SM2 key pair.