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