delete_column
Remove a column from a Yokan Board to reorganize your kanban workflow by specifying board and column IDs.
Instructions
Deletes a column from a board.
Args: board_id (int): The ID of the board containing the column. column_id (str): The ID of the column to delete. auth (AuthContext): The authentication context containing user ID and token.
Returns: int: The ID of the updated board.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | ||
| column_id | Yes | ||
| auth | Yes |
Implementation Reference
- src/main.py:309-332 (handler)The 'delete_column' tool handler, which removes a column from a Kanban board and updates the board data.
async def delete_column( board_id: int, column_id: str, auth: AuthContext, ) -> int: """Deletes a column from a board. Args: board_id (int): The ID of the board containing the column. column_id (str): The ID of the column to delete. auth (AuthContext): The authentication context containing user ID and token. Returns: int: The ID of the updated board. """ board = await yokan_client.get_board(board_id=board_id, token=auth.token) if "columns" not in board.data or column_id not in board.data["columns"]: raise McpError(error=ErrorData(code=NOT_FOUND, message="Column not found")) del board.data["columns"][column_id] if "columnOrder" in board.data: board.data["columnOrder"].remove(column_id) return await yokan_client.update_board( board_id=board_id, name=board.name, data=board.data, token=auth.token )