]> Cypherpunks.ru repositories - nncp.git/blob - doc/cmd/nncp-rm.texi
Refactored and tested nncp-rm
[nncp.git] / doc / cmd / nncp-rm.texi
1 @node nncp-rm
2 @pindex nncp-rm
3 @section nncp-rm
4
5 @example
6 $ nncp-rm [options] [-older X] -tmp
7 $ nncp-rm [options] -lock
8 $ nncp-rm [options] [-older X] @{-all|-node NODE@} -part
9 $ nncp-rm [options] [-older X] @{-all|-node NODE@} -seen
10 $ nncp-rm [options] [-older X] @{-all|-node NODE@} -nock
11 $ nncp-rm [options] [-older X] @{-all|-node NODE@} -area
12 $ nncp-rm [options] [-older X] @{-all|-node NODE@} @{-rx|-tx@} [-hdr]
13 $ nncp-rm [options] [-older X] @{-all|-node NODE@} -pkt <<EOF
14 PKT1
15 PKT2
16 NODEx/PKT3
17 @dots{}
18 EOF
19 @end example
20
21 This command is aimed to delete various files from your spool directory.
22 @option{-older} option may limit the subset of files to be deleted for
23 most commands.
24
25 @itemize
26
27 @item If @option{-tmp} option is specified, then it will delete
28 temporary files in @file{spool/tmp} directory. Files may stay in it when
29 commands like @command{@ref{nncp-file}} fail for some reason.
30
31 @item If @option{-lock} option is specified, then all @file{.lock} files
32 will be deleted in your spool directory.
33
34 @item If @option{-pkt} option is specified, then only the specified list
35 of packets (Base32 names) will be deleted. It is read from @code{stdin}.
36 This could be useful when you see some packet failing to be processed.
37 Packet identifiers may have "directories" prepended, that are ignored.
38
39 @item @option{-rx} and @option{-tx} options will delete packets in
40 corresponding queue directories. Corresponding @file{hdr/} files are
41 also automatically deleted.
42
43 @item @option{-part} option limits that to @file{.part}ly downloaded packets.
44
45 @item @option{-nock} option limits that to non-checksummed
46 (non-verified) @file{.nock} files.
47
48 @item @option{-seen} option deletes @file{seen/} files.
49
50 @item @option{-hdr} option deletes cached @file{hdr/} files.
51
52 @item @option{-area} option deletes seen files in @file{area/} subdirectories.
53
54 @end itemize
55
56 @option{-dryrun} option just prints what will be deleted.
57
58 @option{-older} accepts an integer with appended time unit:
59
60 @itemize
61 @item @code{10s} -- 10 seconds
62 @item @code{5m} -- 5 minutes
63 @item @code{12h} -- 12 hours
64 @item @code{2d} -- 2 days
65 @end itemize