> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ALTER RESOURCE GROUP

> ALTER RESOURCE GROUP alters the configuration of a resource group.

ALTER RESOURCE GROUP alters the configuration of a resource group.

**Tip**

This operation requires the ALTER privilege on the target resource group. You can follow the instructions in [GRANT](/documents/4.2/sql-reference/sql-statements/account-management/GRANT.md) to grant this privilege.

## Syntax

```SQL theme={null}
ALTER RESOURCE GROUP resource_group_name
{  ADD CLASSIFIER1, CLASSIFIER2, ...
 | DROP (CLASSIFIER_ID_1, CLASSIFIER_ID_2, ...)
 | DROP ALL
 | WITH resource_limit 
};
```

## Parameters

| **Parameter** | **Description** |
| - | - |
| resource\_group\_name | Name of the resource group to be altered. |
| ADD | Add classifiers to the resource group. See [CREATE RESOURCE GROUP - Parameters](/documents/4.2/sql-reference/sql-statements/cluster-management/resource_group/CREATE_RESOURCE_GROUP.md) for more information on how to define a classifier. |
| DROP | Drop classifiers from the resource group via classifier IDs. You can check the ID of a classifier via [SHOW RESOURCE GROUP](/documents/4.2/sql-reference/sql-statements/cluster-management/resource_group/SHOW_RESOURCE_GROUP.md) statement. |
| DROP ALL | Drop all classifiers from the resource group. |
| WITH | Modify the resource limits of the resource group. See [CREATE RESOURCE GROUP - Parameters](/documents/4.2/sql-reference/sql-statements/cluster-management/resource_group/CREATE_RESOURCE_GROUP.md) for more information on how to set resource limits. |

## Examples

Example 1: Adds a new classifier to the resource group `rg1`.

```SQL theme={null}
ALTER RESOURCE GROUP rg1 ADD (user='root', query_type in ('select'));
```

Example 2: Drops classifiers with ID `300040`, `300041`, and `300041` from the resource group `rg1`.

```SQL theme={null}
ALTER RESOURCE GROUP rg1 DROP (300040, 300041, 300041);
```

Example 3: Drops all classifiers from the resource group `rg1`.

```SQL theme={null}
ALTER RESOURCE GROUP rg1 DROP ALL;
```

Example 4: modifies the resource limits of the resource group `rg1`.

```SQL theme={null}
ALTER RESOURCE GROUP rg1 WITH (
    'cpu_weight' = '10'
);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.