[p4] Deleting all files in a depot
Jeremy Overesch
jovere at millerwelds.com
Mon Jun 11 08:08:19 PDT 2007
If I'm correct in reading your email, the only "file" that exists in your depot is the "Volumes" directory. In this case, I've seen in the past that you must go to the actual depot directory on the server and delete that folder. As a byproduct of Perforce only handling files and not directories, all the files will be gone but the directories still exist when you do an obliterate.
--Jeremy
>>> Mike <lists at michael-amorose.com> 6/8/2007 5:11 PM >>>
I used the obliterate command but it reports there are no records to delete.
I have a depot with a single dir named "Volumes" at the top level.
I have verified that my user and workspace are correct, then I issue the
obliterate command:
Mikes-Mac-mini-1-83-Ghz:~ mike$ p4 obliterate -y Volumes
No records to delete.
Mikes-Mac-mini-1-83-Ghz:~ mike$
The p4 obliterate page on the website is not too helpful in showing the
exact syntax needed for the command.
Do I have the path wrong? Do I need to preface the path with '//depot/'?
Thanks,
Mike
David Weintraub wrote:
> 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
>>
>
>
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list