Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-delete |
| 2 | ============= |
| 3 | |
| 4 | ``ndnsec-delete`` is a tool to delete security data from both **Public Info Base** and |
| 5 | **Trusted Platform Module**. |
| 6 | |
| 7 | Usage |
| 8 | ----- |
| 9 | |
| 10 | :: |
| 11 | |
| 12 | ndnsec-delete [-h] [-kc] name |
| 13 | |
| 14 | Description |
| 15 | ----------- |
| 16 | |
| 17 | By default, ``ndnsec-delete`` interpret ``name`` as an identity name. If an identity is deleted, |
| 18 | all the keys and certificates belonging to the identity will be deleted as well. If a key is |
| 19 | deleted, all the certificate belonging to the key will be deleted as well. |
| 20 | |
Yingdi Yu | 6147ef4 | 2014-12-08 17:48:32 -0800 | [diff] [blame] | 21 | |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 22 | Options |
| 23 | ------- |
| 24 | |
| 25 | ``-k`` |
| 26 | Interpret ``name`` as a key name and delete the key and its related data. |
| 27 | |
| 28 | ``-c`` |
| 29 | Interpret ``name`` as a certificate name and delete the certificate. |
| 30 | |
Yingdi Yu | 6147ef4 | 2014-12-08 17:48:32 -0800 | [diff] [blame] | 31 | Exit Status |
| 32 | ----------- |
| 33 | |
| 34 | Normally, the exit status is 0 if the requested entity is deleted successfully. |
| 35 | If the entity to be deleted does not exist, the exit status is 1. |
| 36 | For other errors, the exit status is 2. |
| 37 | |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 38 | Examples |
| 39 | -------- |
| 40 | |
| 41 | Delete all data related to an identity: |
| 42 | |
| 43 | :: |
| 44 | |
| 45 | $ ndnsec-delete /ndn/test/david |