Deleting and Renaming Files
Top  Previous  Next


Sometimes, a new file added to the project makes the entire old file obsolete and you will therefore want to delete the obsolete file.

To delete files:
1.Open the Document Explorer (refer to Using the Document Explorer Tool in CS-RCS Tools).  
2.Select the files you want to delete.  
3.From the File menu, click Delete.  
OR  
Right-click on the selected file. A right-click menu appears.  
From the right-click menu, click Delete.  
A message appears asking if you want to delete the file.  
4.Click Yes. If you want to enter a description or comment, enter it in the Description and comments field.  
5.Check Delete working file if you want to delete the working file.  
6.Click OK.  
A message appears that you have successfully deleted the file.  
7.Click OK.  
Obsolete files are displayed with the Deleted RCS status. If, from the View menu, the Deleted Documents option is checked, the deleted file still appears in the list of files.  

If the name or location of a file changes, then you must rename the file from the Document Explorer to ensure the Repository file is renamed as well.

To rename a file:
1.Open the Document Explorer (refer to Using the Document Explorer Tool in CS-RCS Tools).  
2.Right-click the file you want to rename, and click Rename.  
3.Type the new file name in the File name field. To move the file to another folder, specify the desired folder in the Save in field.  
4.Click Save.  
   A message appears asking if you want to rename the file.  
5.Click OK.  
The Rename command marks the old RCS name as Deleted and creates a new RCS file with the desired name and location.  

Using the Document Explorer, you may perform the following operations on Deleted files:
·Retrieve any revision of the file.  
·Restore the file to a non-deleted state.  
·Permanently remove the file from the RCS Repository.  
 
To retrieve any revision of a file:
1.Select a deleted file.  
2.From the File menu, click Revision History.  
OR  
Right-click on the selected file. A right-click menu appears.  
From the right-click menu, click Revision History.  
The Revision Manager dialog box appears displaying all revisions of the deleted file.  
3.Select the revision you want to retrieve.  
4.Click Retrieve Revision.  
The Save As dialog box appears.  
5.Select where you want to save the retrieved revision, and click Save.  
The revision is retrieved.  
6.Close the Save As dialog box.  
 
To restore the file to a non-deleted state:
1.Select a deleted file.  
2.From the File menu, click Restore. If you want to enter a description or comment, enter it in the Description and comments field.  
3.Click OK.  
The file's status changes from Deleted to Archived.  

To permanently remove the file from the Repository:
1.Delete the Deleted file (again).  
You will be asked to confirm that you want to delete the file.  
2.Click Yes.  
A warning message appears that you will permanently remove the file from the Repository.  
3.Click Yes.  
A message appears that you have successfully deleted the file from the Repository.  
4.Click OK.  
You are returned to the Document Explorer and the removed file does not appear in the list of files.  

The implementation of the Delete and Rename commands enable you to retrieve old project milestones containing deleted or renamed files. Since this method is important for project-level revision management, exercise caution when permanently deleting RCS files.

Note: You cannot delete or rename files locked by other users.