superset_tag_delete
Remove tags permanently from Apache Superset by making DELETE requests to the tag API endpoint. This action cannot be undone.
Instructions
Delete a tag
Makes a request to the /api/v1/tag/{id} DELETE endpoint to remove a tag. This operation is permanent and cannot be undone.
Args: tag_id: ID of the tag to delete
Returns: A dictionary with deletion confirmation message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_id | Yes |
Implementation Reference
- main.py:1575-1596 (handler)Handler function implementing the superset_tag_delete tool. Deletes a Superset tag by ID via API DELETE request to /api/v1/tag/{tag_id}, with success message handling.@mcp.tool() @requires_auth @handle_api_errors async def superset_tag_delete(ctx: Context, tag_id: int) -> Dict[str, Any]: """ Delete a tag Makes a request to the /api/v1/tag/{id} DELETE endpoint to remove a tag. This operation is permanent and cannot be undone. Args: tag_id: ID of the tag to delete Returns: A dictionary with deletion confirmation message """ response = await make_api_request(ctx, "delete", f"/api/v1/tag/{tag_id}") if not response.get("error"): return {"message": f"Tag {tag_id} deleted successfully"} return response