'How to delete Stream Depot in perforce

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.



Solution 1:[1]

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.

Solution 2:[2]

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

Solution 3:[3]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 James
Solution 2 Ar13l
Solution 3 MickyD