1DPNS‐RM(1) DPNS User Commands
2DPNS‐RM(1)
3
4
5
6[1mNAME[0m
7 dpns‐rm ‐ remove DPNS files or directories in the name
8server
9
10[1mSYNOPSIS[0m
11 [1mdpns‐rm [22m[[1m‐a[22m] [[1m‐f[22m] [[1m‐i[22m]
12[4mfilename[24m...
13
14 [1mdpns‐rm [22m[[1m‐f[22m] [[1m‐i[22m] [1m‐r
15[4m[22mdirname[24m...
16
17[1mDESCRIPTION[0m
18 [1mdpns‐rm [22mremoves DPNS files or directories in
19the name server. For
20 directories either [1m‐r [22mor [1m‐R [22mmust be present.
21For regular files, it
22 calls [1mdpns_unlink [22mwhile for directories, it calls
23[1mdpns_rmdir[22m.
24
25 This requires write permission in the parent directory
26and the file
27 itself. If write permission on an entry is denied, the
28standard input
29 is a terminal and the [1m‐f [22moption is not given,
30the prompt "override
31 write protection" appears and if the response is not
32[1my[22m, the entry is
33 not deleted. Entries directly under a protected direc‐
34tory are never
35 deleted.
36
37 [4mpath[24m specifies the DPNS pathname. If [4mpath[24m
38does not start with [1m/[22m, it
39 is prefixed by the content of the [1mDPNS_HOME
40[22menvironment vari‐
41 able.
42
43[1mOPTIONS[0m
44 The following options are supported:
45
46 [1m‐a [22mRemove the [1mmetadata [22minformation about
47a file [1mand [22mthe [1mmetadata[0m
48 information about the replicas that it may have.
49[1mRemember [22mthat
50 this is a metadata‐only operation, it does not re‐
51move the repli‐
52 cas physically from the disk. Removing metadata
53entries about
54 replicas without removing the replicas from the
55disks leads to
56 non‐reachable files on disk. Applies only to
57files, not direc‐
58 tories.
59
60 [1m‐f [22mDo not give an error message if the
61file/directory does not
62 exist.
63
64 [1m‐i [22mRequest acknowledge before removing each in‐
65dividual entry.
66
67 [1m‐R [22mRecursive mode (equivalent to [1m‐r[22m).
68
69 [1m‐r [22mRecursive mode.
70
71[1mEXIT STATUS[0m
72 This program returns 0 if the operation was successful
73or >0 if the
74 operation failed.
75
76[1mSEE ALSO[0m
77 [1mCastor_limits(4)[22m, [1mdpns_rmdir(3)[22m, [1mdpns_un‐
78link(3)[0m
79
80[1mAUTHOR[0m
81 [1mLCG Grid Deployment [22mTeam
82
83
84
85DPNS $Date: 2011/11/04 11:57:00 $
86DPNS‐RM(1)
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132