Disable telemetry and discard any pending unsent records.
()
| 172 | |
| 173 | |
| 174 | def disable() -> None: |
| 175 | """Disable telemetry and discard any pending unsent records.""" |
| 176 | config = _load_config() |
| 177 | config["telemetry"] = {"enabled": False} |
| 178 | _save_config(config) |
| 179 | # Discard pending buffer (right to withdraw) |
| 180 | buf = _buffer_path() |
| 181 | if buf.exists(): |
| 182 | buf.unlink() |
| 183 | |
| 184 | |
| 185 | def status() -> dict[str, Any]: |
no test coverage detected