From fb594897850ad9daacf75cab702f3765cc7168c0 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Cong Date: Sat, 27 Jan 2024 13:00:44 +0100 Subject: [PATCH] fix: Remove delete classification (#932) * Update event documentation * Remove delete classification --- docs/classifications.md | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/docs/classifications.md b/docs/classifications.md index 20f79701f..ab5b86f3a 100644 --- a/docs/classifications.md +++ b/docs/classifications.md @@ -123,39 +123,6 @@ var template = await client.MetadataManager .UpdateMetadataTemplate(new List() { update }, "enterprise", "securityClassification-6VMVochwUWo"); ``` -Delete a classification ------------------------ - -To delete a classification, call the -`MetadataManager.UpdateMetadataTemplate(IEnumerable metadataTemplateUpdate, string scope, string template)` method -with proper parameters. - - -```c# -var update = new BoxMetadataTemplateUpdate -{ - Op = MetadataTemplateUpdateOp.removeEnumOption, - FieldKey = "Box_Security_Classification_Key", - EnumOptionKey = "Sensitive", -}; - -var template = await client.MetadataManager - .UpdateMetadataTemplate(new List() { update }, "enterprise", "securityClassification-6VMVochwUWo"); - -``` - -Delete all classifications --------------------------- - -To remove all classifications in an enterprise, call the -`MetadataManager.DeleteMetadataTemplate(string scope, string template)` -method with the name of the classification metadata template. - - -```c# -var isDeleted = await client.MetadataManager.DeleteMetadataTemplate("enterprise", "securityClassification-6VMVochwUWo"); -``` - Add classification to file --------------------------