Skip to content

Commit 393cfef

Browse files
authored
fix: Remove delete classification (#861)
1 parent 804780e commit 393cfef

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

docs/usage/classifications.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -96,34 +96,6 @@ new_updates.edit_enum_option('Box__Security__Classification__Key', 'Sensitive',
9696
updated_template = template.update_info(updates=new_updates)
9797
```
9898

99-
Delete a classification
100-
-----------------------
101-
102-
To delete a classification, call the
103-
[`template.start_update()`][start_update] API to start making changes to the
104-
template, and then call the [`template.update_info(updates=new_updates)`][update_info]
105-
with the classification to remove from the template.
106-
107-
<!-- sample put_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema delete -->
108-
```python
109-
template = client.metadata_template('enterprise', 'securityClassification-6VMVochwUWo')
110-
new_updates = template.start_update()
111-
new_updates.remove_enum_option('Box__Security__Classification__Key', 'Sensitive')
112-
updated_template = template.update_info(updates=new_updates)
113-
```
114-
115-
Delete all classifications
116-
--------------------------
117-
118-
To remove all classifications in an enterprise, call the
119-
[`template.delete()`](https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.base_object.BaseObject.delete)
120-
method with the name of the classification metadata template.
121-
122-
<!-- sample delete_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema -->
123-
```python
124-
client.metadata_template('enterprise', 'securityClassification-6VMVochwUWo').delete()
125-
```
126-
12799
Add classification to file
128100
--------------------------
129101

0 commit comments

Comments
 (0)