Removing a project from the current directory

You can remove a project from the current working directory. 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.

About this task

ccm unuse -p|-project [-t|-task task_spec] [-d|-delete [-f|-force]] 
          [-r|-replace] project_spec...
-d|-delete
Remove the object from the current directory and its context project, then delete the object from the database.
-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 database if it is not a member of any project.
project_spec
Specifies the projects to be unused. See Project specification for details.
-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, the current task is used by default. See Task specification for details.

Example

Cut sort.c from the current directory.

ccm unuse sort.c-1:csrc:1


Feedback