Options for the delete command.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public DeleteFilesCmdOptions( DeleteFilesCmdFlags flags, int changeList ) |
Visual Basic |
---|
Public Sub New ( _ flags As DeleteFilesCmdFlags, _ changeList As Integer _ ) |
Visual C++ |
---|
public: DeleteFilesCmdOptions( DeleteFilesCmdFlags flags, int changeList ) |
Return Value
Remarks
p4 help delete
delete -- Open an existing file for deletion from the depot
p4 delete [-c changelist#] [-n -v -k] file ...
Opens a depot file for deletion.
If the file is synced in the client workspace, it is removed. If a
pending changelist number is specified using with the -c flag, the
file is opened for delete in that changelist. Otherwise, it is opened
in the default pending changelist.
Files that are deleted generally do not appear on the have list.
The -n flag displays a preview of the operation without changing any
files or metadata.
The -v flag enables you to delete files that are not synced to the
client workspace.
The -k flag performs the delete on the server without modifying
client files. Use with caution, as an incorrect delete can cause
discrepancies between the state of the client and the corresponding
server metadata.