Why can't I delete my depot on Perforce?

Posted by teukkam on Super User See other posts from Super User or by teukkam
Published on 2012-04-04T07:52:49Z Indexed on 2012/04/06 17:34 UTC
Read the original article Hit count: 839

Filed under:

I'm just messing around in a local Perforce database, trying to figure out how I can reset Perforce back to a previous state without journaling or deleting and recreating the database files.

I have some depots without files, one of them is called "sandbox". I created it with the p4 depot command either from the command line or using the P4Python API (at this point I don't remember which).

When I type: p4 depot -d sandbox I get this:

Depot sandbox isn't empty. To delete a depot, all file revisions must be removed and all lazy copy references from other depots must be severed. Use 'p4 obliterate' or 'p4 snap' to break file linkages from other depots, then clear this depot with 'p4 obliterate', then retry the deletion.

I tried p4 obliterate -y sandbox which just says No records to delete. which is expectable as the depot is empty. Anyway it doesn't change the result from p4 depot -d. There are also no connections from other depots as the error message suggests.

Any idea what is happening and is there a foolproof way to force a depot to be deleted without deleting the server files altogether? Ultimately I want to do this automatically from P4Python.

© Super User or respective owner

Related posts about perforce