ndnsec-delete is a tool to delete security data from both Public Info Base and Trusted Platform Module.


ndnsec-delete [-h] [-kc] name


By default, ndnsec-delete interpret name as an identity name. If an identity is deleted, all the keys and certificates belonging to the identity will be deleted as well. If a key is deleted, all the certificate belonging to the key will be deleted as well.


Interpret name as a key name and delete the key and its related data.
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.


Delete all data related to an identity:

$ ndnsec-delete /ndn/test/david