Choose your language:
    Delete a group
    Returns
    Returns a sso_group object.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const ssoGroupId = '312';
    const ssoGroup = await client.ssoGroup.destroy(ssoGroupId);
    console.log(ssoGroup);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "312",
    "name": "Admin",
    "priority": 1,
    "role": "34",
    "users": [
    "312"
    ]
    }