Box Developer Documentation

Delete a metadata cascade policy

Delete a metadata cascade policy

A metadata cascade policy can be deleted by calling the DELETE /metadata_cascade_policies/:id API endpoint with the id of the policy to remove.

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);
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
	});

To get the id of the policy, list all policies for the folder.