Delete a label from the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public void DeleteLabel( Label label, Options options ) |
Visual Basic |
---|
Public Sub DeleteLabel ( _ label As Label, _ options As Options _ ) |
Visual C++ |
---|
public: void DeleteLabel( Label^ label, Options^ options ) |
Parameters
- label
- Type: Perforce.P4..::..Label
The label to be deleted
- options
- Type: Perforce.P4..::..Options
The 'f' and '-d' flags are valid when deleting an existing label
Examples
To delete the label admin_label:
CopyC#

Label deleteTarget = new Label(); deleteTarget.Id = "admin_label"; rep.DeleteLabel(deleteTarget, null);