Box Developer Documentation
Latest version

Remove classification from folder

delete
https://api.box.com/2.0
/folders/:folder_id/metadata/enterprise/securityClassification-6VMVochwUWo

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Removes any classifications from a folder.

This API can also be called by including the enterprise ID in the URL explicitly, for example /folders/:id/enterprise_12345/securityClassification-6VMVochwUWo.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

The unique identifier that represent a folder.

The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/folder/123 the folder_id is 123.

The root folder of a Box account is always represented by the ID 0.

Response

none

Returns an empty response when the classification is successfully deleted.

application/jsonClient error

Returned when the request parameters are not valid.

application/jsonClient error

Returns an error when the folder does not have any classification applied to it, or when the user does not have access to the folder.

  • instance_not_found - An instance of the classification metadata template with the was not found on this folder.
  • not_found - The folder was not found, or the user does not have access to the folder.
application/jsonClient error

Returned when the method was not allowed.

application/jsonClient error

An unexpected client error.

delete
Remove classification from folder
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


cURL
curl -i -X DELETE "https://api.box.com/2.0/folders/12345/metadata/enterprise/securityClassification-6VMVochwUWo" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.folderClassifications.deleteClassificationFromFolder(folder.id);
Python v10
client.folder_classifications.delete_classification_from_folder(folder.id)
.NET v10
await client.FolderClassifications.DeleteClassificationFromFolderAsync(folderId: folder.Id);
Swift v10
try await client.folderClassifications.deleteClassificationFromFolder(folderId: folder.id)
Java v10
client.getFolderClassifications().deleteClassificationFromFolder(folder.getId())
Java v4
BoxFolder folder = new BoxFolder(api, "id");
folder.deleteMetadata(Metadata.CLASSIFICATION_TEMPLATE_KEY);
Python v3
client.folder(folder_id='11111').metadata(scope='securityClassification-6VMVochwUWo', template='myMetadata').delete()
.NET v5
var folderId = "0";

var folderMetadata = await client.MetadataManager.DeleteFolderMetadataAsync(folderId, "enterprise", "securityClassification-6VMVochwUWo");
Node v3
client.folders.deleteMetadata('11111', 'enterprise', 'securityClassification-6VMVochwUWo')
	.then(() => {
		// removal succeeded — no value returned
	});;