Controlling file and directory deletion

When you delete a unit from a project, IBM® Rational® Rhapsody® executes a Delete from configuration management operation. This process uses properties in batch mode and the SCC API in SCC mode.

About this task

This operation is based on properties you set depending on whether you use batch mode or the SCC API in SCC mode.

Table 1. Controlling file and directory deletion
Batch mode SCC mode
Set the ConfigurationManagement::Clearcase::DeleteActivation property. You can set the DeleteActivation property so that Rational Rhapsody does the deleting automatically or prompts the user to confirm the action requested. Set the following properties, depending on the configuration management tool you use:
  • If you are using IBM Rational ClearCase®, set ConfigurationManagement::SCC::DeleteActivation and ConfigurationManagement::General::UseHybridModeWhenPossible. You can set the DeleteActivation property so that Rational Rhapsody does the deleting automatically or prompts the user to confirm the action requested.
  • If you are using IBM Rational Synergy, set ConfigurationManagement::SCC::DeleteActivation. You can set the property so that Rational Rhapsody does the deleting automatically or prompts the user to confirm the action requested.
  • If you are using any other SCC tool, when you delete a package that is in a separate directory, the product does not make any changes to the configuration management system. Instead, Rational Rhapsody displays an error message stating that the operation could not be executed in the configuration management system.

    If you change the model only, the product deletes the package in the model but does not change the file system or configuration management system. If you change the model and the file system, Rational Rhapsody changes both the model and file system. For more information, see Failure to update the configuration management system.
Note: For this operation, the Rational Rhapsody Undo command (Ctrl+Z) works only in the model, not in the archive. You cannot undo a delete operation in the archive.

In some cases, the product cannot delete a file from the configuration management archive. When this occurs, the product removes the unit from the model (but does not delete the file on the hard disk drive or remove the file from the configuration management system) and displays an error message informing you that the unit was not completely removed. Check the Output window for additional messages.


Feedback