delete-process
delete-process is a built-in function in `C source code
'.
(delete-process PROCESS)
Delete PROCESS: kill it and forget about it immediately.
PROCESS may be a process, a buffer, the name of a process or buffer, or
nil, indicating the current buffer's process.