6

I use P4Admin to create Stream Depot (named streamDepot) in perforce, then I create a Stream(main) by client, I populated it with client workspace and with a project. But when I try to obliterate the files and delete that streamDepot depot with P4Admin, I got no luck. Message says:

Depot 'streamDepot' is the location of existing streams; cannot delete until they are removed.

So what is the meaning of existing streams? I already deleted client namespace and files which mapped to streamDepot's Stream(main). What should I do? I dont see any files in streamDepot (no main stream or stream types) with viewing P4Admin by Depots Tab.

Mustafa Ekici
  • 7,263
  • 9
  • 55
  • 75
  • The stream is a separate concept from the files in the stream. Just as you created the stream and then populated it with files, you have to obliterate the files, then delete the stream. But why do you need to delete the stream depot? Is it causing you problems? Generally, depots are created and never deleted. – Bryan Pendleton Dec 08 '13 at 16:48
  • 1
    I obliterate files already but no luck when deleting. – Mustafa Ekici Dec 08 '13 at 17:12
  • 2
    You can run 'p4 streams' to view the streams in your stream depot, and 'p4 stream -d' to delete an unused stream. – Bryan Pendleton Dec 09 '13 at 14:46
  • oh thanks p4 stream -d //streamDepot/Main then its ok now. – Mustafa Ekici Dec 09 '13 at 22:16

3 Answers3

3

When you created the Streamdepot you created a main stream along with it (I believe, its been a while since we set ours up.) I would hazard a guess you just need to delete that stream and then you should be good to delete the depot. look for //streamdepot/Main obliterate the files, obliterate the stream, obliterate the depot.

James
  • 422
  • 8
  • 21
0

To delete a stream depot use the command below, WARNING Make sure you clean out the depot before attempting this command.

p4 depot -d depotname

If this fails you might have files still connected to the stream depot, here is a link to the full procedure for cleaning up and deleting a depot. https://community.perforce.com/s/article/2546

Tonia Sanzo
  • 335
  • 2
  • 10
0

Initially none of the above solutions worked because when I created the stream, I didn't notice the checkbox that said Create a workspace to use with this steam as shown below:

enter image description here

Naturally this lead to the same error as reported by the OP when I tried to delete the streams and depot later:

Depot 'xxx' is the location of existing streams; cannot delete until they are removed.

Eventually I realised the cause (the workspace) and deleted the offending workspace(s) from the Workspaces tab:

enter image description here

With the workspaces deleted, I was able to delete the stream(s) and depot from the Streams tab and P4Admin respectively. No need for command-line.