blob: 3c808af0879cafe01c241181a4fffb459712c66d [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-delete
2=============
3
4``ndnsec-delete`` is a tool to delete security data from both **Public Info Base** and
5**Trusted Platform Module**.
6
7Usage
8-----
9
10::
11
12 ndnsec-delete [-h] [-kc] name
13
14Description
15-----------
16
17By default, ``ndnsec-delete`` interpret ``name`` as an identity name. If an identity is deleted,
18all the keys and certificates belonging to the identity will be deleted as well. If a key is
19deleted, all the certificate belonging to the key will be deleted as well.
20
Yingdi Yu6147ef42014-12-08 17:48:32 -080021
Alexander Afanasyev151a8552014-04-11 00:54:43 -070022Options
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 Yu6147ef42014-12-08 17:48:32 -080031Exit Status
32-----------
33
34Normally, the exit status is 0 if the requested entity is deleted successfully.
35If the entity to be deleted does not exist, the exit status is 1.
36For other errors, the exit status is 2.
37
Alexander Afanasyev151a8552014-04-11 00:54:43 -070038Examples
39--------
40
41Delete all data related to an identity:
42
43::
44
45 $ ndnsec-delete /ndn/test/david