Open file(s) in a client workspace for deletion from the depot.
p4 [g-opts] delete [-c changelist] [-n -k -v] [--remote=remote] file ...
The p4 delete
command opens file(s) in a client
workspace for deletion from the depot. The files are immediately removed
from the client workspace, but are not deleted from the depot until the
corresponding changelist is committed with p4 submit
.
Although it will appear that a deleted file has been deleted from
the depot, the file is never truly deleted, as older revisions of the
same file are always accessible. Instead, a new head revision of the file
is created which marks the file as being deleted. If p4 sync
is used to bring the
head revision of this file into another workspace, the file is deleted
from that workspace.
A file that is open for deletion does not appear on the workspace’s have list.
|
Opens the files for If this option is not provided, the files are linked to the default changelist. |
|
Delete the file on the shared versioning service, but keep a copy of the deleted file in your workspace. |
|
Preview which files would be opened for delete, without actually changing any files or metadata. |
|
Opens the file for delete in your personal server, and
additionally — if the file is of type For more information, see the section Support for exclusive locking in the Fetching and Pushing chapter of Using Helix Core for Distributed Versioning. |
|
Delete a file that is not synced into the client workspace. To use this option, specify these files in depot syntax; because
such files are not synced, client syntax or local syntax can
introduce ambiguities in the list of files to delete. (If the
files are synced, To delete a set of files without transferring them to your
workstation when another version of these files already exists in
your workspace, use |
|
See Global Options. |
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
No |
No |
|
p4 delete
can be reinstated in the client workspace
and removed from the pending changelist with p4 revert
. To do this,
you must revert the deletion before submitting the changelist.p4 resolve
. To prevent
someone else from opening a file once you’ve opened it, use p4 lock
. To determine
whether or not another user already has a particular file open, use
p4 opened
-a
file
.+Sn
file modifier results in special
behavior when you delete and read a file: no file reversions are
deleted that were submitted before the add or delete. For example, if a
file of type +S2
is marked as deleted in revision 5, and
then re-added with the same file type and modifier, revisions 3 and 4
are not purged.
|
Opens the file called |
|
Opens |
To open a file for add |
|
To open a file for edit |
|
To copy all open files to the depot |
|
To read files from the depot into the client workspace |
|
To create or edit a new changelist |
|
To list all opened files |
|
To revert a file to its unopened state |
|
To move an open file to a different changelist |