blob: 141aa0c81ed38b87ebaa4257516234cec17ec780 [file] [log] [blame]
ndnsec-delete
=============
Synopsis
--------
**ndnsec-delete** [**-h**] [**-k**\|\ **-c**] *name*
Description
-----------
:program:`ndnsec-delete` allows to delete security data from both the
**Public Info Base (PIB)** and the **Trusted Platform Module (TPM)**.
By default, :program:`ndnsec-delete` will interpret *name* as an identity name.
If an identity is deleted, all keys and certificates belonging to that identity
will be deleted as well. If a key is deleted, all certificates associated with
that key will be deleted as well.
Options
-------
.. option:: -k, --delete-key
Interpret *name* as a key name and delete the key and its associated data.
.. option:: -c, --delete-cert
Interpret *name* as a certificate name and delete the certificate.
Exit Status
-----------
Normally, the exit status is 0 if the requested entity is deleted successfully.
If the entity to be deleted does not exist, the exit status is 1.
For other errors, the exit status is 2.
Example
-------
Delete all data related to an identity::
$ ndnsec-delete /ndn/test/david