Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
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.
Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public IList<FileSpec> DeleteFiles( Options options, params FileSpec[] files ) |
Visual Basic |
---|
Public Function DeleteFiles ( _ options As Options, _ ParamArray files As FileSpec() _ ) As IList(Of FileSpec) |
Visual C++ |
---|
public: IList<FileSpec^>^ DeleteFiles( Options^ options, ... array<FileSpec^>^ files ) |
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.