When you use WebSphere Studio to delete a file or folder that is a Rational ClearCase element, ClearCase automatically checks out the parent directory, performs a cleartool rmname operation in the ClearCase VOB, then checks the parent directory back in. Refer to the following Notes for more information about deleting WebSphere Studio files or folders that are under ClearCase control.
If the parent directory is checked out when you perform a delete operation, ClearCase does not automatically check in the directory after you delete elements.
ClearCase does not undo the checkouts of files or folders in the directory you are deleting. We recommend that you resolve any checkouts in that directory or any subdirectories before deleting it.
If you want to delete multiple WebSphere Studio files or folders residing in the same directory as a single directory version change, check the directory out of ClearCase, perform the deletions in WebSphere Studio, then check the directory back into ClearCase.
If you are using ClearCase UCM, a delete operation always uses the current activity.
WARNINGS:
- Problems may arise if a developer working on a shared branch of ClearCase checks in the parent directory but not the corresponding changes. To avoid these problems when developing on a shared branch, you can set the Window > Preferences > Team > Rational ClearCase > When parent directory is automatically checked out to move, rename, or delete an element preference to Do nothing and make sure that all files or folders containing code changes related to the deleted files or folders are checked in to ClearCase along with the source and destination directories.
If you perform an Undo Check Out operation on the directory before checking it back in, the deletion process is undone and deleted files and folders reappear.