6.4. Delete a Certificate from an NSS Database

Prerequisites:

To delete a certificates from an NSS database, execute the commands below, replacing NSS_DIR with the correct value and CERTIFICATE_NICKNAME with the nickname of the certificate that you want to delete. Note, if there are multiple certificates with the same nickname, each invocation of this command will delete only one.

NSS_DIR='NSS_DIR'
        
certutil \
    -D \
    -d "${NSS_DIR}" \
    -n 'CERTIFICATE_NICKNAME'