1

I'm trying to delete a single version-controlled file in ClearCase. I already know that I'm supposed to check out the parent directory and its checked out.
I don't know if I'm supposed to check out the file I going to delete.

If I don't check out the file I get the error:

cleartool: Error: Not a vob object: "MyFileName".

If I do check out the file I get:

cleartool: Error: Element "MyFileName" has checkouts.

So ClearCase knows it's one of its files – but it doesn't want to delete it. I'm just baffled.
I've already updated and rebased repeatedly.

How do I move forward here?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Tony Eastwood
  • 781
  • 2
  • 9
  • 23

1 Answers1

0

If you see that error message "has checkouts", you need to do the command in a shell:

cd /path/to/view/your/view/path/to/parent/folder
cleartool rmname -force yourfile
cleartool checkin -nc .

See more at:


The OP Tony Eastwood reports in the comments:

The issue seems to have been caused by me:

  • checking out the parent directory,
  • unchecking the parent,
  • and then checking out the parent directory again.

Surprisingly, once you've done this you have to run an update (even though you have made no changes).
Once I'd run update it was happy to execute the rmname command.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for the answer. The issue seems to have been caused by me checking out the parent directory, unchecking the parent, and then checking out the parent directory again. Surprisingly, once you've done this you have to run an update (even though you have made no changes). Once I'd run update it was happy to execute the rmname command – Tony Eastwood Nov 19 '13 at 09:57
  • @TonyEastwood Excellent. I have included your conclusion in the answer for more visibility. – VonC Nov 19 '13 at 10:00