Box Developer Documentation
 

    Remove metadata from an item

    Remove metadata from an item

    Removing an instance of a metadata template assigned to a file or folder can be done using the item's id, and the template's templateKey and scope.

    Metadata scopes can be either global for templates available to all enterprises, enterprise for templates available to the current enterprise, or the enterprise_:id for templates belonging to an enterprise whose ID is the :id value in the scope name.

    Remove metadata from an file

    Deleting an instance of a metadata template from a file be achieved by calling the DELETE /files/:file_id/metadata/:templateKey/schema API.

    cURL
    curl -i -X DELETE "https://api.box.com/2.0/files/12345/metadata/enterprise_27335/blueprintTemplate" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    This API returns a 204 No Content API response with no response body when the instance has been successfully removed from the file.

    Remove metadata from an folder

    Deleting an instance of a metadata template from a folder be achieved by calling the DELETE /folders/:folder_id/metadata/:templateKey/schema API.

    cURL
    curl -i -X DELETE "https://api.box.com/2.0/folders/4353455/metadata/enterprise_27335/blueprintTemplate" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    This API returns a 204 No Content API response with no response body when the instance has been successfully removed from the folder.