Choose your language:
    Delete a fieldset
    Returns
    Returns a fieldset object.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    const fieldsetId = '124';
    client.fieldset.destroy(fieldsetId)
    .then((fieldset) => {
    console.log(fieldset);
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "124",
    "title": "SEO-related fields",
    "hint": "Please fill in these fields!",
    "collapsible": true,
    "startCollapsed": false,
    "position": 1,
    "itemType": "44"
    }