[p4] Deleting all files in a depot
Ivey, William
william_ivey at bmc.com
Sun Jun 10 11:33:41 PDT 2007
You nearly always have to specify files with Perforce,
directories are largely a side effect from its perspective.
If Volumes is the name of your depot, the command would
be:
p4 obliterate -y //Volumes/...
If Volumes is a directory under the actual depot, then it
would be more like this:
p4 obliterate -y //depot/Volumes/...
(It's the same basic syntax as all other commands that take
a file argument.)
-Wm
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Mike
Sent: Friday, June 08, 2007 5:12 PM
To: perforce-user at perforce.com
Subject: Re: [p4] Deleting all files in a depot
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