4.6.2 Deleting a repository using component as a unit
In the component import functionality, you must first delete the HCSC components, which are duplicated, since the import operation fails, if the repository information is duplicated in the repository.
Execute the cscrepctl command by specifying the -delete option to delete the repository using component as a unit. The repository is deleted from the operating environment irrespective of whether the HCSC components are released.
The following shows an example of using the cscrepctl command to delete the information in the repository on a component basis. This example assumes that the user ID and password of HCSC-Manager are defined in the HCSC-Manager command definition file.
-
Example 1 of command execution
In this example, the cscrepctl command is used to delete the information about the HCSC component whose service ID is 1 from the repository in the operating environment.
cscrepctl -delete -name 1
-
Example 2 of command execution
From among the HCSC components present in the repository of the operating environment, the HCSC components specified in HCSC component-specification file "hcsccomponent.txt"# are deleted in a batch.
cscrepctl -delete -namelist hcsccomponent.txt
- Note#
-
For HCSC component-specification file, see "6.5.5 HCSC component-specification file" in "Service Platform Reference Guide".
For the cscrepctl command, see "cscrepctl (Importing/Exporting)" in "Service Platform Reference Guide".