Repository tools command to delete SCM components
Use the scmDeleteComponent command to delete a previously archived SCM component.
Purpose
The scmDeleteComponent command permanently deletes a previously archived SCM component and all its included artifacts such as change sets, baselines, files, and content from the database. For more information about the delete component command, see SCM Component Delete.
Parameters
In addition to the standard command-line arguments available to the repotools command, the following arguments are available.
Attribute | Description | Required | Default |
---|---|---|---|
components | The list of components. | Yes, unless you useresumeProgress or cancel. | N/A |
noPrompt | Do not prompt the user for confirmation before deletion. | No | N/A |
force | Force component deletion. | No | N/A |
ignoreLocks | Ignore component locks when you delete a component. | No | N/A |
cancel | Cancel a currently running job. | No | N/A |
noProgress | Do not show progress. | No | N/A |
resumeProgress | Attach to the currently running job on the server and display its progress in the console until the move is complete. | No | N/A |
job | Provide a job ID for the cancel, or resume command if a job ID cannot be determined automatically. | No | N/A |
adminUserId | The administrator user ID to log in to the Jazz® Team Server. | No | ADMINUSER |
adminPassword | The administrator password to log in to the Jazz Team Server. | No | ADMINPASSWORD |
credentialsFile | The file that contains the administrator user's login credentials. | No | credentials.properties |
certificateFile | The file that contains the administrator user's login certificate. | No | none |
smartCard | The alias to log in with when you use a smart card. To list available aliases, type a question mark (?). | No | none |
repositoryURL | The connection URL for the Jazz Engineering Workflow Management Server. | No | https://localhost:9443/application where application is usually "ccm" |
Example
Open a command prompt and enter this command:
cd C:\Program Files\IBM\JazzTeamServer\server\ repotools-ccm.bat -scmDeleteComponent component=_j6bJgDWPEeugK61YTHPVkg repositoryURL=https://server.com:9443/ccm adminUserId=AdminUser adminPassword=AdminPassword
Open a command line and enter
this command:
cd /opt/IBM/JazzTeamServer/server/ ./repotools-ccm.sh -scmDeleteComponent component=_j6bJgDWPEeugK61YTHPVkg repositoryURL=https://server.com:9443/ccm adminUserId=AdminUser adminPassword=AdminPassword