Removes any classifications from a file.
This API can also be called by including the enterprise ID in the
URL explicitly, for example
The unique identifier that represent a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
Returns an empty response when the classification is successfully deleted.
Returned when the request parameters are not valid.
Returns an error when the file does not have any classification applied to it, or when the user does not have access to the file.
instance_not_found- An instance of the classification metadata template with the was not found on this file.
not_found- The file was not found, or the user does not have access to the file.
Returned when the method was not allowed.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/files/12345/metadata/enterprise/securityClassification-6VMVochwUWo" \ -H "Authorization: Bearer <ACCESS_TOKEN>"
BoxFile file = new BoxFile(api, "id"); file.deleteMetadata(Metadata.CLASSIFICATION_TEMPLATE_KEY);