From SRB



Srm - Remove files from SRB space


Srm [-n replicaNum] [-puf] [-A condition] srbObj ... Srm -r [-n replicaNum] [-puf] [-A condition] srbObj|collection ...


In the first synopsis form, Srm erases each srbObj from SRB space.

In the second synopsis form, Srm erases recursively each srbObj and/or collection from SRB space.

This new Srm command by default, will move the files and collections designated for removal into the /trash or /myZone/trash collections. For immediate removal at the time of execution, the -f option should be used. The Srmtrash command can be used to purge the trash directories.

If any srbObj is replicated, then all copies are erased.

The user should have at least 'all' access permission for each SrbObj erased.

The srbObj argument can be a path name in the SRB collection hierarchy.


display command options
Prompts before removing each object from SRB space.
Force the immediate removal at the time of execution..
Recursively remove collections and subcollections in the argument list. The collection will be emptied of datasets and removed.
the replicaNum of the copy to be removed.
Unregister the data from MCAT. The physical data file is not removed.
condition option is an '&' separated condition which will be applied in choosing the object to be removed. The separated condition is of the form "<Attr> <CompOp> <Value>", where <Attr> is an MCAT attribute found by Sattrs command, <CompOp> is a comparison operator and <Value> is a numeric or string value. The entire condition should be within a set of double quotes. Example: Srm -A "COPY = 0" foo.txt


Sput, Srmtrash, Srmdir, Sattrs