gfal-rm(1)

Remove files or directories

Section 1 gfal2-util-scripts bookworm source

Description

GFAL-RM

NAME

gfal-rm - Remove files or directories

SYNOPSIS

gfal-rm [ OPTION ]... FILE...

DESCRIPTION

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

OPTIONS

-h, --help

show help about the command.

-V, --version

output version information and exit.

-v, --verbose

verbose mode. Repeat up to 3 times for the most verbose mode.

-D, --definition DEFINITION

define properties for gfal2. Definitions have the following syntax: "CONFIG_GROUP:KEY=VALUE"

-t, --timeout TIMEOUT

global timeout for the execution of the command. Command is interrupted if time expires before it finishes. Note: A grace period of 30 seconds is given to the global timeout.

-E, --cert CERT

user certificate. (This option takes effect only after X509_USER_PROXY environment variable and default /tmp/x509up_u‘id -u‘ location cannot provide a certificate)

--key KEY

user private key.

-4

forces Gfal2 to use IPv4 addresses only. (Option valid only for GridFTP protocol)

-6

forces Gfal2 to use IPv6 addresses only. (Option valid only for GridFTP protocol)

-C, --client-info CLIENT_INFO

provide custom client-side information.

--log-file LOG_FILE

write Gfal2 library logs to the given file location.

-r, -R, --recursive

remove directories and their contents recursively.

--dry-run

print what would have happened without any actual change.

--just-delete

do not perform any check on the file prior to delete. (Needed to delete HTTP signed URLs)

--from-file FROM_FILE

read SURLs from a file.

--bulk

perform bulk deletion.

EXAMPLES

gfal-rm

file:///tmp/test

gfal-rm

-r srm://endpoint.cern.ch/path/directory

FILES

/etc/gfal2.d/*

All configuration files in this directory affect the behavior of the underlying gfal2.

AUTHORS

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

SEE ALSO

gfal-cat(1), gfal-chmod(1), gfal-copy(1), gfal-ls(1), gfal-mkdir(1), gfal-rename(1), gfal-rm(1), gfal-save(1), gfal-stat(1), gfal-sum(1), gfal-token(1), gfal-xattr(1), gfal-evict(1), gfal-bringonline(1), gfal-archivepoll(1)