]> Cypherpunks.ru repositories - nncp.git/blob - doc/cmd/nncp-rm.texi
02676732165fcc136374e3163dc3f7640d061113
[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] -tmp
7 $ nncp-rm [options] -lock
8 $ nncp-rm [options] @{-all|-node NODE@} -part
9 $ nncp-rm [options] @{-all|-node NODE@} -seen
10 $ nncp-rm [options] @{-all|-node NODE@} -nock
11 $ nncp-rm [options] @{-all|-node NODE@} -hdr
12 $ nncp-rm [options] @{-all|-node NODE@} -area
13 $ nncp-rm [options] @{-all|-node NODE@} [-rx] [-tx]
14 $ nncp-rm [options] @{-all|-node NODE@} -pkt <<EOF
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
24 @itemize
25
26 @item If @option{-tmp} option is specified, then it will delete all
27 temporary files in @file{spool/tmp} directory. Files may stay in it when
28 commands like @command{@ref{nncp-file}} fail for some reason.
29
30 @item If @option{-lock} option is specified, then all @file{.lock} files
31 will be deleted in your spool directory.
32
33 @item If @option{-pkt} option is specified, then list of packets (Base32
34 names) toe be deleted is read from @code{stdin}. This could be useful
35 when you see some packet failing to be processed. Packet identifiers
36 could have "directories" prepended, that are ignored.
37
38 @item When either @option{-rx} or @option{-tx} options are specified
39 (maybe both of them), then delete all packets from that given queues.
40
41 @item @option{-part} option deletes @file{.part}ly downloaded files.
42
43 @item @option{-seen} option deletes @file{seen/} files. But it does not
44 apply to @ref{Multicast, multicast areas} ones!
45
46 @item @option{-nock} option deletes non-checksummed (non-verified)
47 @file{.nock} files.
48
49 @item @option{-hdr} option deletes cached @file{hdr/} files.
50
51 @item @option{-area} option deletes seen files in @file{area/} subdirectories.
52
53 @end itemize
54
55 @option{-dryrun} option just prints what will be deleted.
56
57 You can also select files that only have modification date older than specified
58 @option{-older} time units (@code{10s} (10 seconds), @code{5m} (5 minutes),
59 @code{12h} (12 hours), @code{2d} (2 days)).