Remove files and their history from the depot
p4 obliterate can be used by Perforce superusers to permanently remove files from the depot. All the information about the files are wiped out, including the files' revisions, the files' metadata, and any records in any labels or client workspace records that refer directly to those files. Once p4 obliterate completes, it appears to the server as if the files never existed. Files in the client workspace will not be touched, but are not recognized as being under Perforce source control.
p4 obliterate requires at least one file pattern as an argument. To actually perform the obliterate, the -y flag is required; without it, p4 obliterate tells you what it would do without actually doing it.
-y | Perform the obliterate operation. Without this flag, p4 obliterate merely reports what it would do. |
g_opts | See global options section. |
Can File Arg Use Revision Specifier? |
Can File Arg Use Revision Range? |
Minimal Access Level Required |
---|---|---|
No | No | super |
To mark a file deleted at its head revision | p4 delete |