Delete a saved session. Args: session_id: Session ID to delete Returns: True if deleted, False if not found
(self, session_id: str)
| 154 | return sessions |
| 155 | |
| 156 | def delete(self, session_id: str) -> bool: |
| 157 | """Delete a saved session. |
| 158 | |
| 159 | Args: |
| 160 | session_id: Session ID to delete |
| 161 | |
| 162 | Returns: |
| 163 | True if deleted, False if not found |
| 164 | """ |
| 165 | path = self._session_path(session_id) |
| 166 | if path.exists(): |
| 167 | path.unlink() |
| 168 | logger.info(f"Session deleted: {session_id}") |
| 169 | return True |
| 170 | return False |