Skip to main content

Droost: Uninstall Modules

droost_module_uninstall Write (gated)

Module: Droost core

Uninstalls modules with dependency checking. Data-defining modules take their data with them — read the message carefully. Gated.

Example call
{
    "tool": "droost_module_uninstall",
    "arguments": {
        "modules": [
            "devel_generate"
        ]
    }
}
Example response — captured live on this site
{
    "success": false,
    "message": "This tool is disabled. Enable it with: drush config:set droost.settings allow_destructive true (or via Admin → Configuration → Development → Droost), then reload the MCP server in your editor — the running server caches this flag at startup and will keep refusing until it is restarted. (To disable later, use --input-format=yaml false so the value is stored as a real boolean.)",
    "data": null
}

Uninstalls (disables) one or more modules (equivalent to "drush pm:uninstall"). Deletes their config and data. Disabled by default; requires droost.settings.allow_destructive.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "modules": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Module machine names to uninstall."
        }
    },
    "required": [
        "modules"
    ]
}