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

    Examples

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