> For the complete documentation index, see [llms.txt](https://docs.hyperdbg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperdbg.org/commands/meta-commands/.kill.md).

# .kill (terminate the process)

Description of the '.kill' command in HyperDbg.

### Command

> .kill

### Syntax

> .kill

### Description

Terminates the currently active process (the previously started process using the '[.start](https://docs.hyperdbg.org/commands/meta-commands/.start)' or the '[.attach](https://docs.hyperdbg.org/commands/meta-commands/.attach)' commands).

### Parameters

None

### Examples

Imagine we want to terminate a previously started program using the '[.start](https://docs.hyperdbg.org/commands/meta-commands/.start)' command.

```
0: kHyperDbg> .kill
```

### IOCTL

The IOCTL description is the same as the '[.start](https://docs.hyperdbg.org/commands/meta-commands/.start)' command, but instead of **Action**, you should send `DEBUGGER_ATTACH_DETACH_USER_MODE_PROCESS_ACTION_KILL_PROCESS`.

### Remarks

This command will continue the debuggee for some time (in Debugger Mode). This means that you lose the current context (registers & memory) after executing this command.

### Requirements

None

### Related

[.start (start a new process)](https://docs.hyperdbg.org/commands/meta-commands/.start)

[.restart (restart the process)](https://docs.hyperdbg.org/commands/meta-commands/.restart)

[.attach (attach to a process)](https://docs.hyperdbg.org/commands/meta-commands/.attach)

[.detach (detach from the process)](https://docs.hyperdbg.org/commands/meta-commands/.detach)

[.switch (show the list and switch between active debugging threads)](https://docs.hyperdbg.org/commands/meta-commands/.switch)
