LFC-RM(1)

NAME

lfc-rm - remove LFC files or directories in the name server

SYNOPSIS

lfc-rm [-f] [-i] filename...

lfc-rm [-f] [-i] -r dirname...

DESCRIPTION

lfc-rm removes LFC files or directories in the name server. For directories either -r or -R must be present. For regular files, it calls lfc_unlink while for directories, it calls lfc_rmdir.

This requires write permission in the parent directory and the file itself. If write permission on an entry is denied, the standard input is a terminal and the -f option is not given, the prompt "override write protection" appears and if the response is not y, the entry is not deleted. Entries directly under a protected directory are never deleted.

path specifies the LFC pathname. If path does not start with /, it
is prefixed by the content of the LFC_HOME environment variable.

OPTIONS

The following options are supported:

-f Do not give an error message if the file/directory does not
exist.
-i Request acknowledge before removing each individual entry.
-R Recursive mode (equivalent to -r).
-r Recursive mode.

EXIT STATUS

This program returns 0 if the operation was successful or >0 if the operation failed.

SEE ALSO

Castor_limits(4), lfc_rmdir(3), lfc_unlink(3)

AUTHOR

LCG Grid Deployment Team
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout