annotate
apropos
catcr
catcs
cc.icon
cc.magic
cd
chactivity
chbl
checkin
checkout
checkvob
chevent
chflevel
chfolder
chmaster
chpool
chproject
chstream
chtype
chview
clearaudit
clearbug
cleardescribe
cleardiffbl
cleardiff
clearexport_ccase
clearexport_cvs
clearexport_pvcs
clearexport_rcs
clearexport_sccs
clearexport_ssafe
clearfsimport
cleargetlog
clearhistory
clearimport
clearjoinproj
clearlicense
clearmake
clearmake.options
clearmrgman
clearprojexp
clearprompt
cleartool
clearviewupdate
clearvobadmin
comments
config_ccase
config_spec
cptype
credmap
creds
deliver
describe
diffbl
diffcr
diff
dospace
edcs
endview
env_ccase
events_ccase
export_mvfs
exports_ccase
file
find
findmerge
fmt_ccase
getcache
get
getlog
help
hostinfo
init_ccase
ln
lock
lsactivity
lsbl
lscheckout
lsclients
lscomp
lsdo
lsfolder
lshistory
ls
lslock
lsmaster
lspool
lsprivate
lsproject
lsregion
lsreplica
lssite
lsstgloc
lsstream
lstype
lsview
lsvob
lsvtree
makefile_aix
makefile_ccase
makefile_gnu
makefile_pmake
makefile_smake
makefile_sun
man
merge
mkactivity
mkattr
mkattype
mkbl
mkbranch
mkbrtype
mkcomp
mkdir
mkelem
mkeltype
mkfolder
mkhlink
mkhltype
mklabel
mklbtype
mkpool
mkproject
mkregion
mkstgloc
mkstream
mktag
mktrigger
mktrtype
mkview
mkvob
mount_ccase
mount
msdostext_mode
mvfslog
mvfsstorage
mvfstime
mvfsversion
mv
omake
pathnames_ccase
permissions
profile_ccase
promote_server
protect
protectvob
pwd
pwv
query_language
quit
rebase
recoverview
reformatview
reformatvob
register
relocate
rename
reqmaster
reserve
rgy_backup
rgy_check
rgy_passwd
rgy_switchover
rmactivity
rmattr
rmbl
rmbranch
rmcomp
rmdo
rmelem
rmfolder
rmhlink
rmlabel
rmmerge
rmname
rmpool
rmproject
rmregion
rmstgloc
rmstream
rmtag
rmtrigger
rmtype
rmver
rmview
rmvob
schedule
schemes
scrubber
setactivity
setcache
setcs
setplevel
setsite
setview
shell
snapshot.conf
softbench_ccase
space
startview
type_manager
umount
uncheckout
unlock
unregister
unreserve
update
version_selector
view_scrubber
vob_restore
vob_scrubber
vob_sidwalk
vob_snapshot
vob_snapshot_setup
wildcards_ccase
winkin
xclearcase
xcleardiff
xmldiffmrg
SYNOPSIS
DESCRIPTION
The rmview command performs different, but related, tasks:
Removing a View and Its Related Records
Use this form of the command to remove a view completely. Complete removal of a view entails the following:
- Removing the view-storage directory
- Removing view-related records for that view from all accessible VOBs: checkout records, derived object records (ClearCase dynamic views)
- Killing its associated view_server process, if the view is currently active
- For a snapshot view, also removing recursively the snapshot view's root directory, which is the directory tree of loaded versions and view-private objects
- For a dynamic view, removing its entry in the root directory.
- Removing the view's information from the view registry
Be sure that the current working directory is not within the view storage area that you are deleting.
By default, rmview refuses to delete a view if any element is checked out to that view. You can override this behavior with the –force option.
rmview does not allow you to remove your current set view or working directory view (the view in which you are executing rmview). However, you can remove a view (set view or working directory view) that you are currently using if you issue the rmview command from a shell in which you are not using the view.
Note: On UNIX, if the view was created with mkview –ln, its view-private objects are stored in a directory tree in an alternate location. rmview attempts to delete this directory tree; if it does not succeed, an error occurs and the view storage area remains unaffected.
Note: On Windows, if you use the subst or net use commands to assign a drive letter to the snapshot view directory, use the corresponding subst /d or net use /delete command to remove the assignment after you use rmview. Also, if you use the form rmview snapshot-view-storage-pname, the snapshot view directory is not deleted; use the form rmview snapshot-view-pname.
Purging View-Related Records Only
Use this form of the command in either of these situations:
- Complete purging of view-related records from all VOBs is not possible. (For example, some of the VOBs may be offline when you remove the view.)
- A view storage area cannot be deleted with rmview, because it has become unavailable for another reason: disk crash, accidental deletion with some operating system command, and so on.
To remove view-related records only, use rmview and specify a view by its UUID (universal unique identifier; see the “View UUIDs” section). Despite being invoked as rmview, this form of the command has no effect on any view or view_server process, only on the specified VOBs.
Caution
Incorrect results occur if a VOB loses synchronization with its views. To avoid this problem:
RESTRICTIONS
Identities
You must have one of the following identities:
Locks
No locks apply.
Mastership
(Replicated VOBs) No mastership restrictions.
OPTIONS AND ARGUMENTS
Confirmation Step
- Default
- Prompt for confirmation of the specified rmview operation.
- –f·orce
- Suppresses confirmation prompts for:
- Complete view removal. Confirmation
is needed to proceed if some elements are checked out to the view. Proceeding
has the effect of canceling the checkouts and destroying the work items; rmview removes
the checkout records from the appropriate VOBs.
- Remove view-related records. Confirmation
is needed to proceed if the view still exists.
- Complete view removal. Confirmation
is needed to proceed if some elements are checked out to the view. Proceeding
has the effect of canceling the checkouts and destroying the work items; rmview removes
the checkout records from the appropriate VOBs.
Specifying a View
- Default
- None.
- –tag dynamic-view-tag
- Specifies the dynamic view to be removed. dynamic-view-tag specifies
the view tag of a dynamic view. rmview removes the view
storage directory and all relevant entries from the network's view registry.
- dynamic-view-storage-dir-pname
- Specifies the storage location directory
where the dynamic view resides. Be sure that the current working directory
is not within this view storage area.
- snapshot-view-pname
- Specifies the path to your snapshot view.
This is the directory in which you load your files and do your work. rmview removes
the view storage directory and all relevant entries from the network's view
registry. Be sure that the current working directory is not anywhere within
this view storage area.
- snapshot-view-storage-dir-pname
Note: This option is intended for deleting view storage associated with a snapshot view that was deleted using an operating system command. Only rmview effectively deletes a view; in normal circumstances, you should specify snapshot-view-pname instead of this argument to delete a snapshot view.
Specifies the directory within a storage location where the snapshot view resides. rmview removes the view storage directory and all relevant entries from the network's view registry. Be sure that the current working directory is not within this view storage area.
Specifying View-Related Records
- Default
- None.
- –vob vob-selector
- Specifies the VOB from which view-related records are to be removed. If you omit this option, cleartool uses the VOB containing the current working directory. Specify vob-selector in the form [vob:]pname-in-vob
- –avo·bs
- Specifies that view-related records are to
be removed from the VOBs specified by the environment variable CLEARCASE_AVOBS,
or if this variable is unset, from all VOBs mounted on the current host (ClearCase)
or all VOBs residing on the ClearCase LT server host.
- –a·ll
- Specifies that the view-related records are
to be removed from all VOBs in which such records can be found.
- –uui·d view-uuid
- Specifies the view whose records are to be
removed from one or more VOBs.
EXAMPLES
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
- Delete the view storage area at /view_store/Rel2.vws.
- Delete the view storage area whose view tag is anneRel2.
- Delete the checkout and DO records for a deleted view from the current VOB. Suppress the confirmation prompt.
- On Windows, delete the snapshot view, rdc_3.2, for which the root directory is E:\library\rdc_3.2.
- On
UNIX, remove the snapshot view test_ssview, even
though it has checkouts.
cmd-context rmview -tag ~usr1/test_ssview.dir
VOB "/tmp/testvob" still has check-outs.
Remove view "/net/peroxide/export/home/usr1/test_ssview.dir/.view.stg"
anyway? [no] yes
Removing references from VOB "/tmp/testvob" ...
Removed references to view "/net/peroxide/export/home/usr1/test_ssview.dir/.view.stg" from VOB "/tmp/testvob".
SEE ALSO
cleartool, config_ccase, describe, env_ccase, lsview, mktag, mkview, net use, rmtag, subst, unregister, Administrator's Guide