Delete a label from the repository

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

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);

See Also