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

# Remove question group

> Ungroup a group (keep its questions) or delete it with its questions

**group\_id** `string` *required*

The group ID.

**study\_id** `string` *required*

The study ID.

**mode** `string` (default: ungroup)

`ungroup` lifts the group's questions and subgroups to its parent; `delete` removes the group and everything in it.

### Response

**mode** `string`

The mode applied.

**deleted\_logic\_rules** `integer`

Logic rules removed because they pointed at removed content.

**lifted\_questions** `integer`

With `ungroup`: questions moved to the parent.

**lifted\_groups** `integer`

With `ungroup`: subgroups moved to the parent.

**deleted\_groups** `integer`

With `delete`: groups removed.

**deleted\_questions** `integer`

With `delete`: questions removed.

```bash cURL theme={null}
curl -X POST "https://api.getversive.com/api/v1/question-groups/d4e5f6a7-0000-4000-8000-000000000002/remove" \
  -H "Authorization: Bearer $VERSIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup"}'
```

```json 200 theme={null}
{ "mode": "ungroup", "deleted_logic_rules": 0, "lifted_questions": 3, "lifted_groups": 0 }
```


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