delete_group
Remove a group from a LimeSurvey survey by specifying the survey ID and group ID. This action helps manage survey structure efficiently.
Instructions
Delete a group from a LimeSurvey survey.
Args:
sid: The survey ID.
gid: The group ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gid | Yes | ||
| sid | Yes |
Implementation Reference
- main.py:449-458 (handler)The main handler function for the 'delete_group' tool. It is decorated with @mcp.tool() which registers it in the FastMCP server. The function deletes the specified group (gid) from the survey (sid) by calling the underlying LimeSurvey client's delete_group method.@mcp.tool() def delete_group(sid: int, gid: int) -> bool: """Delete a group from a LimeSurvey survey. Args: sid: The survey ID. gid: The group ID. """ with get_client() as client: return client.delete_group(sid, gid)