Box Developer Documentation

Join BoxWorks 2024 to discover what's possible with content and AI!

Register now!

Remove metadata cascade policy

delete
https://api.box.com/2.0
/metadata_cascade_policies/:metadata_cascade_policy_id

Deletes a metadata cascade policy.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
6fd4ff89-8fc1-42cf-8b29-1890dedd26d7

The ID of the metadata cascade policy.

Response

none

Returns an empty response when the policy is successfully deleted.

application/jsonClient error

Returns an error when the policy can not be found or the user does not have access to the folder.

  • instance_not_found - The policy could not be found
  • not_found - The folder could not be found or the user does not have access to the folder.
application/jsonClient error

An unexpected client error.

delete
Remove metadata cascade policy
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/metadata_cascade_policies/324324" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.metadataCascadePolicies.deleteMetadataCascadePolicyById(
  cascadePolicyId,
);
Python Gen
client.metadata_cascade_policies.delete_metadata_cascade_policy_by_id(cascade_policy_id)
.NET Gen
await client.MetadataCascadePolicies.DeleteMetadataCascadePolicyByIdAsync(metadataCascadePolicyId: cascadePolicyId);
Swift Gen (Beta)
try await client.metadataCascadePolicies.deleteMetadataCascadePolicyById(metadataCascadePolicyId: cascadePolicyId)
Java
String cascadePolicyID = "e4392a41-7de5-4232-bdf7-15e0d6bba067";
BoxMetadataCascadePolicy policyToDelete = new BoxMetadataCascadePolicy(api, cascadePolicyID);
policyToDelete.delete();
Python
client.metadata_cascade_policy(policy_id='84113349-794d-445c-b93c-d8481b223434').delete()
print('Cascade policy successfully removed')
Node
var policyID = '84113349-794d-445c-b93c-d8481b223434';
client.metadata.deleteCascadePolicy(policyID)
	.then(() => {
		// deletion succeeded — no value returned
	});