Delete a metadata cascade policy

Delete a metadata cascade policy

Metadata cascade policies are currently in Beta and the syntax might change in the future.

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 -X DELETE https://api.box.com/2.0/metadata_cascade_policies/324324 \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
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.