From 393cfefa57e729f34221a4e5923a4a50532f4013 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Cong Date: Thu, 28 Dec 2023 11:46:18 +0100 Subject: [PATCH] fix: Remove delete classification (#861) --- docs/usage/classifications.md | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/docs/usage/classifications.md b/docs/usage/classifications.md index a300ab1a..d0c77023 100644 --- a/docs/usage/classifications.md +++ b/docs/usage/classifications.md @@ -96,34 +96,6 @@ new_updates.edit_enum_option('Box__Security__Classification__Key', 'Sensitive', updated_template = template.update_info(updates=new_updates) ``` -Delete a classification ------------------------ - -To delete a classification, call the -[`template.start_update()`][start_update] API to start making changes to the -template, and then call the [`template.update_info(updates=new_updates)`][update_info] -with the classification to remove from the template. - - -```python -template = client.metadata_template('enterprise', 'securityClassification-6VMVochwUWo') -new_updates = template.start_update() -new_updates.remove_enum_option('Box__Security__Classification__Key', 'Sensitive') -updated_template = template.update_info(updates=new_updates) -``` - -Delete all classifications --------------------------- - -To remove all classifications in an enterprise, call the -[`template.delete()`](https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.base_object.BaseObject.delete) -method with the name of the classification metadata template. - - -```python -client.metadata_template('enterprise', 'securityClassification-6VMVochwUWo').delete() -``` - Add classification to file --------------------------