Removing a path-based data model
You can delete all definitions and items in item types that are defined specifically for the path-based model and Clb model extensions by using the PathModelDestroy tool.
About this task
The PathModelDestroy tool deletes all items within the following item types:
- ClbApplication
- ClbLibrary
- ClbDocument (if exists for IBM Content Manager Collaboration Services)
- CmisDocument (if exists for IBM CMIS for Content Manager)
- ClbFolder
- ClbDraft
- ClbTextIX (if exists for IBM Content Manager Collaboration Services)
The PathModelDestroy tool also deletes all items that were created by the PathModelCreate
tool.
Important: The PathModelDestroy tool deletes the data model from IBM CMIS for Content Manager. Your library and folder configurations are deleted with any
documents or folders in the item types in the previous list. The tool stops the first time that it
fails and does not proceed with any further deletion after the first failure. The tool does not
delete definitions that are in use. So, if you extended other item types, you must clean up these
item types before you run the tool again. If you created new item types by using definitions that
support the path-based model (including any attribute and group definitions), you must remove any
usage of these item types. Then, you can run this tool again, and the tool starts at the place where
it stopped.
Restriction: The PathModelDestroy tool does not remove MIME type definitions that were
added by the PathModelCreate tool when you configured the repository. The MIME type definitions are
not removed because it is likely that they are used by other users and other applications. If
existing items use the MIME type, and the definition is removed, you cannot update the affected
items again unless the MIME type is changed to a valid MIME type. You cannot delete definitions that
are being used by existing data. Therefore, to ensure that your existing applications remain working
with the rest of your original item types and items, the MIME types are not removed.
In an interactive mode, the tool prompts you for all required options. You can also run the tool in a silent mode by specifying the options and values. You can use either the single character or the full name of the option.
To display a list of available options, enter java com.ibm.content.cm.tools.PathModelDestroy -? or java com.ibm.content.cm.tools.PathModelDestroy -help.
Procedure
To run the PathModelDestroy tool:
Run the Java command with the following format: java
com.ibm.content.cm.tools.PathModelDestroy -options
values.
Use the following command options for the PathModelDestroy tool:
- r or repository
- The Content Manager EE database name or the alias name.
- u or user
- The Content Manager EE user ID that you use to log in.
- p or password
- The Content Manager EE password that you use to log in.
- o or options
- The Content Manager EE connection options that you can use to connect to Content Manager EE. For more information about connection options, see the DKDatastoreICM::connect() method or the SConnectDisconnectICM.java sample.
- force or nowarn
- Forces deletion without important warning prompt. This option might cause a data loss. The default value is false.
- z or throwExc
- The exception message. The value can be either true or false. The default value is false.
Example
The following code sample shows how to run the tool in an interactive mode:
| Operating system | Code sample |
|---|---|
| Linux or UNIX systems | ./configure-repository.sh PathModelDestroy |
| Windows | configure-repository.bat PathModelDestroy |
The following code sample shows how to run the tool in a silent mode. You must enter the command
in one
line.
java com.ibm.content.cm.tools.PathModelDestroy -r icmnlsdb -u icmadmin -p password
-o SCHEMA=ICMADMIN -force true -z true