superset_dashboard_delete
Remove dashboards from Apache Superset by making DELETE requests to the API. This permanent action deletes dashboards using their ID.
Instructions
Delete a dashboard
Makes a request to the /api/v1/dashboard/{id} DELETE endpoint to remove a dashboard. This operation is permanent and cannot be undone.
Args: dashboard_id: ID of the dashboard to delete
Returns: A dictionary with deletion confirmation message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_id | Yes |
Implementation Reference
- main.py:594-618 (handler)The main handler function for the 'superset_dashboard_delete' tool. It uses the make_api_request helper to send a DELETE request to the Superset API endpoint /api/v1/dashboard/{dashboard_id}, handles the response, and returns a success message if deletion succeeds.@mcp.tool() @requires_auth @handle_api_errors async def superset_dashboard_delete(ctx: Context, dashboard_id: int) -> Dict[str, Any]: """ Delete a dashboard Makes a request to the /api/v1/dashboard/{id} DELETE endpoint to remove a dashboard. This operation is permanent and cannot be undone. Args: dashboard_id: ID of the dashboard to delete Returns: A dictionary with deletion confirmation message """ response = await make_api_request( ctx, "delete", f"/api/v1/dashboard/{dashboard_id}" ) # For delete endpoints, we may want a custom success message if not response.get("error"): return {"message": f"Dashboard {dashboard_id} deleted successfully"} return response