Reputation: 2949
I have a perforce project that had a few rather large folders added/removed in it's history. My team has multiple backups and our storage space is limited so I would like to obliterate everything except the current revision. Is there any way to do this with the p4v client or in a linux server command line (where the perforce server is)? Alternatively, in the server side is there a folder I can delete everything from and just upload a new fresh copy? Thank you.
Upvotes: 1
Views: 3254
Reputation: 71574
echo list -l current ...#head > cmds
echo files -a "@<current" >> cmds
p4 -x cmds run
Run it like that first -- when you've satisfied yourself that you want to get rid of all that forever, replace "files -a" with "obliterate -y" and do it again.
Upvotes: 2
Reputation: 1696
Yes, you can do this from P4V, in the Admin view: Tools-->Administration and click on the Depots tab.
From there, find the file(s) or directory you want to obliterate and choose Obliterate... It's very nifty, in that it lets you obliterate all revisions or a range of revisions.
STANDARD CAVEAT: If you choose to go this route, it's permanent. It will get rid of the files on your server (and free up the disk space they currently use up).
Upvotes: 2