rmdo

Removes a derived object from a VOB

APPLICABILITY

ClearCase (cleartool subcommand), Attache (command)

SYNOPSIS

DESCRIPTION

The rmdo command deletes one or more derived objects (DOs). Use rmdo to remove DOs (for example, damaged DOs or DOs that were built incorrectly) so that other users do not use them inadvertently.

NOTE: This command does not apply to snapshot views.

The details of the removal process depend on the kind of DO (use lsdo -long to determine the kind of DO):

In each case, rmdo also deletes the associated configuration record if it is no longer needed. Both of the following conditions must be true:

rmdo does not delete DO versions. To delete a DO that has been checked in as a version of an element, use rmver.

SCRUBBING OF DERIVED OBJECTS

ClearCase includes a utility, scrubber, that deletes shareable DOs. scrubber deletes the entries in the VOB database and (for shared DOs) the data containers in the VOB's storage pools. By default, the ClearCase scheduler runs scrubber periodically. See the schedule reference page for information on describing and changing scheduled jobs.

Each DO pool has scrubbing parameters, which you can modify with the mkpool -update command.

PERMISSIONS AND LOCKS

Permissions Checking: For each object processed, you must be one of the following: DO group member, DO owner, VOB owner, member of the ClearCase group. To delete a shared DO, you must be the VOB owner or a member of the ClearCase group. See the permissions reference page.

Locks: An error occurs if the VOB or pool is locked.

OPTIONS AND ARGUMENTS

HANDLING OF LIKE-NAMED DERIVED OBJECTS.  Default: Deletes at most one DO for each file name specified with command arguments. A file name with a DO-ID (for example, hello.obj@@24-Mar.11:32.412) specifies exactly which DO to delete. A standard or view-extended pathname specifies the DO that appears in the view.

To determine the DO-IDs of derived objects, use lsdo.

-a·ll

Deletes all DOs at a given pathname, regardless of the view they were created in or currently appear in. (However, see the CAUTION .)
-zer·o

Similar to -all, but deletes only those DOs with zero reference counts.

SPECIFYING DERIVED OBJECTS.  Default: With -all or -zero, the default is to list all DOs in the current working directory. If you do not specify one of these options, you must supply at least one argument.

do-pname ...

Pathnames of one or more individual DOs. A name with a DO-ID, such as foo@@10-Nov.10:14.27672, specifies a particular DO, irrespective of view. A standard Windows NT pathname or view-extended pathname specifies the DO that appears in a view.
pname ...

(use with -all or -zero) One or more standard or view-extended pathnames, each of which can name a file or directory:

  • A file name specifies a collection of DOs built at the same pathname.
  • A directory name is equivalent to a list of all the file names of DOs built in that directory, including file names that do not currently appear in the view (perhaps after a make clean).

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 rmdo hello.obj@@24-Mar.11:32.412
Removed derived object "hello.obj@@24-Mar.11:32.412".
cmd-context rmdo -all hello.exe
Removed derived object "hello.exe@@23-Mar.14:16.178".
Removed derived object "hello.exe@@23-Mar.19:25.394".
cmd-context rmdo -zero hworld
Removed derived object "hworld\hello.o@@23-Mar.20:42.373".
Removed derived object "hworld\hello.o@@23-Mar.20:36.228".
Removed derived object "hworld\hello@@23-Mar.20:42.382".
Removed derived object "hworld\hello@@23-Mar.20:36.234".
Removed derived object "hworld\util.o@@23-Mar.20:42.376".
Removed derived object "hworld\util.o@@23-Mar.20:36.231".

SEE ALSO

clearmake, lsdo, scrubber

Building Software with ClearCase



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