delete_response
Remove a specific survey response from LimeSurvey by providing the survey ID and response ID to manage data accurately.
Instructions
Delete a response from a LimeSurvey survey.
Args:
sid: The survey ID.
response_id: The response ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| response_id | Yes |
Implementation Reference
- main.py:292-302 (handler)The handler function for the 'delete_response' tool. Decorated with @mcp.tool() which registers it in the FastMCP server. It deletes the specified response from the survey using the LimeSurvey API client and returns True if successful.@mcp.tool() def delete_response(sid: int, response_id: int) -> bool: """Delete a response from a LimeSurvey survey. Args: sid: The survey ID. response_id: The response ID. """ with get_client() as client: return client.delete_response(sid, response_id)