This section details two different methods for deleting the Object Type Configuration from a Registry Service instance. Once the configuration packages have been deleted, see the Object Type Configuration sub-section of the General Configuration section for instructions on how to load the configuration.
The easiest method for deleting the existing configuration, is to use the Registry User Interface component. If this component is installed in your environment, access the component from your favorite web browser (on the local server access end point http://localhost:8080/registry-ui), select the Registry Service instance from the pull-down menu and perform the following steps:
The alternative method for deleting the packages, is to determine the Global Unique Identifier (guid) for each package and then delete each one with a set of cURL commands. Access the Registry Service at the end point http://localhost:8080/registry-pdsX/packages (where pdsX is either pds3 or pds4) from your favorite web browser. You should see a listing similar to the following (your listing may contain many packages):
<ns2:response xmlns:ns2="http://registry.pds.nasa.gov" numFound="5" start="1"> <ns2:results> <ns2:registryPackage versionName="1.0" description="This configures the core set of registry objects" status="Submitted" objectType="RegistryPackage" name="Core Objects" lid="urn:uuid:83745882-7e8c-450b-ad20-dc5ba6b73fa6" home="http://localhost:8080/registry" guid="urn:uuid:149f202c-3832-4848-b27b-e21b83bed9b4"/> ... </ns2:results> </ns2:response>
Identify the four packages where the name attribute matches the list provided for the previous method. If the packages are not listed on the first page of results, modify the end point request to increase the number of packages returned as follows: http://localhost:8080/registry-pdsX/packages?rows=X. The value of X should be equal to the numFound attribute value from the initial request. Use the web browser's Find feature to identify the configuration packages and obtain their guid attribute value.
Execute the following two cURL commands for each package (the first deletes the member products and the second deletes the package product):
% curl -X DELETE -v \ http://localhost:8080/registry-pdsX/packages/<guid>/members % curl -X DELETE -v \ http://localhost:8080/registry-pdsX/packages/<guid>