rmview

Removes a view or removes view-related records from a VOB

APPLICABILITY

ClearCase (cleartool subcommand), Attache (command)

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:

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.

NOTE: 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.

Purging View-Related Records Only

Use this form of the command in either of these situations:

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 the specifed VOBs.

Caution

Incorrect results occur if a VOB loses synchronization with its views. To avoid this problem:

View UUIDs

Each view has a universal unique identifier. For example:

52000002.4ac711cb.a391.08:00:69:02:18:22

The listing produced by a describe -long vob: command includes the UUIDs of all views for which the VOB holds checkout records and derived object records.

Controlling the Size of the vista.tjf File

The file vista.tjf records updates to the VOB that result from rmview operations. vista.tjf can grow very large. To limit its size, read about the file db.conf in the config_ccase reference page.

PERMISSIONS AND LOCKS

Permissions Checking: You must be the view owner or a member of the ClearCase group. See the permissions reference page

Locks: No locks apply.

OPTIONS AND ARGUMENTS

-f·orce

Automatically responds yes to confirmation requests that rmview would otherwise make:

  • 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.
-tag view-tag | view-storage-dir-pname | snapshot-view-pname
Specifies the view to be removed. We recommend the form -tag snapshot-view-pname for removing a snapshot view.
view-tag specifies the view-tag of any view. rmview removes the view storage directory and all relevant entries from the network's view registry. This option also removes the snapshot view directory only if the snapshot view was created with the default configuration (with the view storage directory in the root directory of the snapshot view).
view-storage-dir-pname specifies the top-level directory of the view storage area. Be sure that the current working directory is not anywhere within this view storage area. This option also removes the snapshot view directory only if the snapshot view was created with the default configuration (with the view storage directory in the root directory of the snapshot view).
snapshot-view-pname specifies the root directory of the snapshot view. rmview removes the root directory of the snapshot view, the view storage directory, and all relevant entries from the network's view registry. This is the recommended method for removing snapshot views. Regardless of the view's configuration, when you specify snapshot-view-pname, rmview can locate all of the files and directories associated with the view.
-vob vob-selector

Specifies the VOB from which view-related records are to be removed. If you omit this option, cleartool or Attache uses the VOB containing the current working directory. Specify vob-selector in the form [vob:]pname-in-vob

pname-in-vob

Pathname of the VOB-tag (whether or not the VOB is mounted) or of any file-system object within the VOB (if the VOB is mounted)

-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.
-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

Examples including 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 command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.

cmd-context rmview C:\vw_store\Rel2.vws
cmd-context rmview -tag anneRel2
cmd-context rmview -force -uuid 249356fe.d50f11cb.a3fd.00:01:56:01:0a:4f
Removed references to VIEW "host2:\users\vbstore\tut\old.vws"
from VOB "\users_hw".
cmd-context rmview -tag E:\library\rdc_3.2

SEE ALSO

config_ccase, env_ccase, lsview, mktag, mkview, registry_ccase, rmtag, unregister



Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved.