superset_chart_delete
Remove charts from Apache Superset using the Superset MCP Integration server. This permanent deletion action helps manage visualization clutter by eliminating unwanted charts.
Instructions
Delete a chart
Makes a request to the /api/v1/chart/{id} DELETE endpoint to remove a chart. This operation is permanent and cannot be undone.
Args: chart_id: ID of the chart to delete
Returns: A dictionary with deletion confirmation message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_id | Yes |
Implementation Reference
- main.py:718-739 (handler)The main handler function for the 'superset_chart_delete' tool. It uses the make_api_request helper to send a DELETE request to the Superset /api/v1/chart/{chart_id} endpoint, handling the response and providing a success message.@mcp.tool() @requires_auth @handle_api_errors async def superset_chart_delete(ctx: Context, chart_id: int) -> Dict[str, Any]: """ Delete a chart Makes a request to the /api/v1/chart/{id} DELETE endpoint to remove a chart. This operation is permanent and cannot be undone. Args: chart_id: ID of the chart to delete Returns: A dictionary with deletion confirmation message """ response = await make_api_request(ctx, "delete", f"/api/v1/chart/{chart_id}") if not response.get("error"): return {"message": f"Chart {chart_id} deleted successfully"} return response