Click or drag to resize

RepositoryDeleteLabel Method

Delete a label from the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public void DeleteLabel(
	Label label,
	Options options
)

Parameters

label
Type: Perforce.P4Label
The label to be deleted
options
Type: Perforce.P4Options
The 'f' and '-d' flags are valid when deleting an existing label
Examples
To delete the label admin_label:
Label deleteTarget = new Label();
deleteTarget.Id = "admin_label";
rep.DeleteLabel(deleteTarget, null);
See Also