1LFC‐RM(1)                            LFC       User      Commands
2LFC‐RM(1)
3
4
5
6[1mNAME[0m
7       lfc‐rm ‐ remove LFC files or directories in the name serv‐
8er
9
10[1mSYNOPSIS[0m
11       [1mlfc‐rm [22m[[1m‐a[22m] [[1m‐f[22m] [[1m‐i[22m] [4mfile‐
12name[24m...
13
14       [1mlfc‐rm      [22m[[1m‐f[22m]      [[1m‐i[22m]      [1m‐r
15[4m[22mdirname[24m...
16
17[1mDESCRIPTION[0m
18       [1mlfc‐rm [22mremoves LFC files or directories in the name
19server.  For direc‐
20       tories either [1m‐r [22mor [1m‐R [22mmust be present.  For
21regular  files,  it  calls
22       [1mlfc_unlink   [22mwhile   for   directories,   it  calls
23[1mlfc_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 LFC pathname.  If [4mpath[24m
38does not start with  [1m/[22m,  it
39              is prefixed  by  the  content  of  the  [1mLFC_HOME
40[22menvironment variable.
41
42[1mOPTIONS[0m
43       The following options are supported:
44
45       [1m‐a      [22mRemove   the   [1mmetadata  [22minformation
46about a file [1mand [22mthe [1mmetadata[0m
47              information about the replicas that  it  may  have.
48[1mRemember  [22mthat
49              this  is a metadata‐only operation, it does not re‐
50move the repli‐
51              cas physically from the  disk.   Removing  metadata
52entries  about
53              replicas   without   removing the replicas from the
54disks leads to
55              non‐reachable  files  on  disk.   Applies  only  to
56files, not  direc‐
57              tories.
58
59       [1m‐f      [22mDo   not   give   an  error  message if the
60file/directory does not
61              exist.
62
63       [1m‐i     [22mRequest acknowledge before removing each in‐
64dividual entry.
65
66       [1m‐R     [22mRecursive mode (equivalent to [1m‐r[22m).
67
68       [1m‐r     [22mRecursive mode.
69
70[1mEXIT STATUS[0m
71       This program returns 0 if the operation was successful  or
72>0  if  the
73       operation failed.
74
75[1mSEE ALSO[0m
76       [1mCastor_limits(4)[22m,  [1mlfc_rmdir(3)[22m,  [1mlfc_un‐
77link(3)[0m
78
79[1mAUTHOR[0m
80       [1mLCG Grid Deployment [22mTeam
81
82
83
84LFC                         $Date:    2011/11/04    11:57:00    $
85LFC‐RM(1)
86
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
Impressum