[p4] Deleting all files in a depot

David Weintraub qazwart at gmail.com
Fri Jun 8 06:20:55 PDT 2007


Well, the easiest way is to shut down Perforce, and simply delete the
P4ROOT directory and start over. Of course, you'll lose the
permissions, clients, etc. too (which you might want).

The other way is to run the "p4 obliterate" command against the whole
depot. That will take longer, but you'll still have all the clients,
changelists, etc. from before.

I guess it depends how much of the system you really want to clean
out. It is also possible to dump the clients, permission table, and
other information you want to keep. Delete your P4ROOT, and then write
a script to rebuild your clients, and permission table.

On 6/8/07, Mike <lists at michael-amorose.com> wrote:
> Is there an easy way to remove all files in a depot from the very top
> level down?
>
> I need to essentially reset my depot so that I can re-add the same files
> in the same locations again to the server.
>
> Thanks,
>
> Mike
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
--
David Weintraub
qazwart at gmail.com


More information about the perforce-user mailing list