RepositoryDeleteLabel Method
|
Delete a label from the repository
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.265.5426
Syntax public void DeleteLabel(
Label label,
Options options
)
Public Sub DeleteLabel (
label As Label,
options As Options
)
public:
void DeleteLabel(
Label^ label,
Options^ options
)
member DeleteLabel :
label : Label *
options : Options -> unit
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