# ProcessKiller.kill

Execute the kill operation.

```rhai
killer.kill() -> String
```

Kills the process(es) matching the configured pattern or PID. Returns a status message on success.

## Returns

- Success message string

## Example

```rhai
let msg = process_killer()
    .pattern("nginx")
    .kill()?;
print(msg);
```
