hty kill
Send SIGKILL to a session’s process. The process is terminated immediately. The session record stays in the server — hty list continues to show it with status killed, and the log file is kept on disk.
Reference
hty kill [SESSION]
Terminate a session's underlying process. The session RECORD stays in
place (same id, same name) so `hty list`, `hty logs` and `hty replay`
keep working on it — use `hty delete` to free the name and remove the
log file permanently.
If SESSION is omitted and exactly one session is running, that one
is killed.
Example
hty kill my-sessionhty kill is non-destructive. The log file is preserved after a kill, so you can still run hty logs or hty replay on the session afterwards. Use hty delete when you are done and want to remove the record entirely.
Last updated on