To remove an element in the lost+found directory

About this task

Tip: You do not need to load the lost+found directory to complete this procedure from a snapshot view.
Note: It is safer to move an element from lost+found than it is to delete it because deleted elements cannot be recovered. However, if you are certain that you want to destroy an element, you should first back up the VOB. Never run the rmelem command recursively in a directory without first verifying its contents, including symbolic links and their targets (deleting symbolic links can cause unexpected results).

Procedure

  1. To obtain the UUID of the element, enter the following command:
    • On the UNIX system and Linux:
      
      % ls VOB-path/lost+found
      
      
    • On Windows systems:
      
      > dir VOB-path\lost+found
      

    Each file in the lost+found directory is named as element-name.UUID.

  2. To permanently remove the element, use the following command:
    • On the UNIX system and Linux:
      
      cleartool rmelem VOB-path/lost+found/orphaned-element-name 
      
      For example, from a dynamic view:
      
      cleartool rmelem /guivob/lost+found/prog.c.5f6815a0a2ce11cca54708006906af65 
      
      For example, from a snapshot view:
      
      cd ~/pat_v1.4_cropcircle_sv
      cleartool rmelem guivob/lost+found/prog.c.5f6815a0a2ce11cca54708006906af65 
      
    • On Windows systems:
      
      cleartool rmelem VOB-path\lost+found\orphaned-element-name
      
      For example, from a dynamic view:
      cleartool rmelem \guivob\lost+found\prog.c.5f6815a0a2ce11cca54708006906af65
      For example, from a snapshot view:
      
      cd c:\pat_v1.4_cropcircle_sv
      cleartool rmelem guivob\lost+found\prog.c.5f6815a0a2ce11cca54708006906af65 
      
  3. When a directory element is removed from lost+found, its subdirectory and file elements become orphaned and so are moved to lost+found. You may need to remove such elements in a separate step.