DIRACGrid/DIRAC — Issue #344: dirac-dms-filecatalog-cli fails to remove replicas/files
Author: graciani
Created: 2011-12-02 08:47:18+00:00
State: open
Labels: DMS

```

bash-3.2$ dirac-dms-filecatalog-cli
Starting LFC FileCatalog client

File Catalog Client $Revision: 1.17 $Date:

FC:/> ls -l /vo.cta.in2p3.fr/user/g
drwxrwxr-x 0 graciani cta_user 0 2011-05-24 01:07:42 graciani
FC:/> ls -l /vo.cta.in2p3.fr/user/g/graciani
drwxrwxr-x 0 graciani cta_user 0 2011-05-24 02:43:31 54
drwxrwxr-x 0 graciani cta_user 0 2011-05-24 01:07:42 DIRAC
-rw-rw-r-- 1 graciani cta_user 10150833 2011-05-24 00:02:39 testFile
FC:/> replicas /vo.cta.in2p3.fr/user/g/graciani/testFile
lfn: /vo.cta.in2p3.fr/user/g/graciani/testFile
srm.pic.es srm://srm.pic.es/pnfs/pic.es/data/vo.cta.in2p3.fr/user/g/graciani/testFile
FC:/> unregister replica /vo.cta.in2p3.fr/user/g/graciani/testFile srm.pic.es
lfn: /vo.cta.in2p3.fr/user/g/graciani/testFile
Replica at srm.pic.es removed from the catalog
FC:/> replicas /vo.cta.in2p3.fr/user/g/graciani/testFile
lfn: /vo.cta.in2p3.fr/user/g/graciani/testFile
srm.pic.es srm://srm.pic.es/pnfs/pic.es/data/vo.cta.in2p3.fr/user/g/graciani/testFile
FC:/> unregister file /vo.cta.in2p3.fr/user/g/graciani/testFile
lfn: /vo.cta.in2p3.fr/user/g/graciani/testFile
File /vo.cta.in2p3.fr/user/g/graciani/testFile removed from the catalog
FC:/> replicas /vo.cta.in2p3.fr/user/g/graciani/testFile
lfn: /vo.cta.in2p3.fr/user/g/graciani/testFile
srm.pic.es srm://srm.pic.es/pnfs/pic.es/data/vo.cta.in2p3.fr/user/g/graciani/testFile
```