Skip to content

Commit

Permalink
fix: Remove delete classification (#932)
Browse files Browse the repository at this point in the history
* Update event documentation

* Remove delete classification
  • Loading branch information
congminh1254 authored Jan 27, 2024
1 parent f877a8f commit fb59489
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions docs/classifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,39 +123,6 @@ var template = await client.MetadataManager
.UpdateMetadataTemplate(new List<BoxMetadataTemplateUpdate>() { update }, "enterprise", "securityClassification-6VMVochwUWo");
```

Delete a classification
-----------------------

To delete a classification, call the
`MetadataManager.UpdateMetadataTemplate(IEnumerable<BoxMetadataTemplateUpdate> metadataTemplateUpdate, string scope, string template)` method
with proper parameters.

<!-- sample put_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema delete -->
```c#
var update = new BoxMetadataTemplateUpdate
{
Op = MetadataTemplateUpdateOp.removeEnumOption,
FieldKey = "Box_Security_Classification_Key",
EnumOptionKey = "Sensitive",
};

var template = await client.MetadataManager
.UpdateMetadataTemplate(new List<BoxMetadataTemplateUpdate>() { 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.

<!-- sample delete_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema -->
```c#
var isDeleted = await client.MetadataManager.DeleteMetadataTemplate("enterprise", "securityClassification-6VMVochwUWo");
```

Add classification to file
--------------------------

Expand Down

0 comments on commit fb59489

Please sign in to comment.