Removing an object from a project

You can remove an object from a project. The current working directory must be within a maintained work area whose project is modifiable by you. If the context project is in working state, you must be the owner of that project. If the context project is in prep state, you must be a build manager.

The -dir option serves two purposes. If you specify the -dir option, the object is removed from the directory and its associated context project. If you do not specify the -dir option, the command removes the object from the current working directory.

About this task

ccm unuse [-dir dir_spec] [-t|-task task_spec] [-d|-delete [-f|-force]] 
          [-r|-replace] file_spec...
-d|-delete
Remove the object from the project, then delete the object from the database.
-dir dir_spec
Specifies to the directory to unuse the object from. The dir_spec is a file_spec (see File specification) that resolves to a single directory object and provides a context project. A project reference specification form or a work area reference form provides such a context project.
file_spec
Specifies the object or objects to unuse. (See File specification for details.)
-force
This option must be used with the -delete option. Forcing a removal specifies that the deleted object is removed from all projects that are modifiable by you before it is deleted from the database. Without specifying -force, the object is removed from the context project for the object. The object is deleted from the database only if it is not a member of any project.
-r|-replace
Replaces the object in the directory with its predecessor. When this option is specified, the list of files in the directory remains unchanged; only the specified object version changes.
-t|-task task_spec
Associates the specified task with the directory that is automatically checked out. If -replace is not specified, the directory that contains the object is updated to remove the entry for that object. If the directory is non-modifiable, the directory is automatically checked out. If the -task option is not specified, then the current task is used by default. See Task specification for details.

Example


Feedback