rmview

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

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Attache


command


Platform

UNIX


Windows

SYNOPSIS

rmview [ -f·orce ] { -tag dynamic-view-tag | dynamic-view-storage-pname }
rmview [ -f·orce ] { snapshot-view-pname | snapshot-view-storage-pname }
rmview [ -f·orce ] [ -vob vob-selector | -avo·bs | -a·ll ] -uui·d view-uuid

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.

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 TO UNIX USERS: 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 TO WINDOWS USERS: If you use the subst or net use commands to assign a drive letter to the snapshot view directory, then 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:

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:

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. For information on limiting its size, read about the file db.conf in the config_ccase reference page.

RESTRICTIONS

Identities: You must have one of the following identities:

Locks: No locks apply.

Mastership: (Replicated VOBs) No mastership restrictions.

OPTIONS AND ARGUMENTS

CONFIRMATION STEPDefault: 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.

SPECIFYING A VIEWDefault: 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 anywhere 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 fordeleting view storage associated with a snapshot view that was deleted using an operating system command. Only rmview effectively deletes a view, and in normal circumstances, you should specify snapshot-view-pname rather than 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 anywhere within this view storage area.

SPECIFYING VIEW-RELATED RECORDSDefault: None.

-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 (ClearCase and Attache) 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. In Attache, cmd-context represents the workspace prompt.

SEE ALSO

config_ccase, env_ccase, lsview, mktag, mkview, rmtag, unregister, Administrator's Guide