1GFAL-RM(1)                  General Commands Manual                 GFAL-RM(1)
2
3
4

NAME

6       gfal-rm - Remove files or directories
7

SYNOPSIS

9       gfal-rm [ OPTION ]...  FILE...
10
11

DESCRIPTION

13       gfal-rm  Removes  each specified file or directory. By default, it does
14       not remove directories. To delete a directory, --recursiv needs  to  be
15       given,  in  which case all given directories are removed too along with
16       all their contents.
17
18

OPTIONS

20       -h, --help
21              show help about the command.
22
23       -V, --version
24              output version information and exit.
25
26       -v, --verbose
27              verbose mode. Repeat up to 3 times for the most verbose mode.
28
29       -D, --definition DEFINITION
30              define properties for gfal2. Definitions have the following syn‐
31              tax: "CONFIG_GROUP:KEY=VALUE"
32
33       -t, --timeout TIMEOUT
34              global  timeout for the execution of the command. Command is in‐
35              terrupted if time expires before it finishes. Note: A grace  pe‐
36              riod of 30 seconds is given to the global timeout.
37
38       -E, --cert CERT
39              user   certificate.   (This   option  takes  effect  only  after
40              X509_USER_PROXY     environment     variable     and     default
41              /tmp/x509up_u`id -u` location cannot provide a certificate)
42
43       --key KEY
44              user private key.
45
46       -4     forces  Gfal2 to use IPv4 addresses only. (Option valid only for
47              GridFTP protocol)
48
49       -6     forces Gfal2 to use IPv6 addresses only. (Option valid only  for
50              GridFTP protocol)
51
52       -C, --client-info CLIENT_INFO
53              provide custom client-side information.
54
55       --log-file LOG_FILE
56              write Gfal2 library logs to the given file location.
57
58       -r, -R, --recursive
59              remove directories and their contents recursively.
60
61       --dry-run
62              print what would have happened without any actual change.
63
64       --just-delete
65              do not perform any check on the file prior to delete. (Needed to
66              delete HTTP signed URLs)
67
68       --from-file FROM_FILE
69              read SURLs from a file.
70
71       --bulk perform bulk deletion.
72
73

EXAMPLES

75       gfal-rm
76              file:///tmp/test
77
78       gfal-rm
79              -r srm://endpoint.cern.ch/path/directory
80
81

FILES

83       /etc/gfal2.d/*
84              All configuration files in this directory affect the behavior of
85              the underlying gfal2.
86
87

AUTHORS

89       Duarte Meneses <duarte.meneses@cern.ch>
90       Adrien Devresse <adrien.devresse@cern.ch>
91       Alejandro Alvarez Ayllon <alejandro.alvarez.ayllon@cern.ch>
92       Andrea Manzi <andrea.manzi@cern.ch>
93       Mihai Patrascoiu <mihai.patrascoiu@cern.ch>
94       Joao Lopes <joao.pedro.batista.lopes@cern.ch>
95
96

SEE ALSO

98       gfal-cat(1),  gfal-chmod(1),  gfal-copy(1),  gfal-ls(1), gfal-mkdir(1),
99       gfal-rename(1), gfal-rm(1),  gfal-save(1),  gfal-stat(1),  gfal-sum(1),
100       gfal-token(1), gfal-xattr(1)
101
102
103
104v1.7.1                            March 2022                        GFAL-RM(1)
Impressum