Kernel home page
Search...
⌘K
Ask AI
Dashboard
Book a demo
Sign up
Sign up
Search...
Navigation
App Platform
Stopping
Guides
API Reference
Get Started
Introduction
Quickstart
Browsers
Create a Browser
Headless Mode
Stealth Mode
Standby Mode
Persistence
Termination & Timeouts
File I/O
Live View
Replays
App Platform
Developing
Secrets
Deploying
Invoking
Stopping
Status
Logs
API
Kernel CLI
MCP Server
Integrations
Vercel
Community
Github
Discord
Info
Concepts
Pricing & Limits
Browsers on Unikernels
Careers
Join Us!
Infrastructure Engineer
Backend Engineer
Software Engineer - New Grad
On this page
Via API
Via CLI
App Platform
Stopping
OpenAI
Open in ChatGPT
OpenAI
Open in ChatGPT
You can terminate an invocation that’s running. You can use this to stop automations or agents stuck in an infinite loop.
Terminating an invocation also destroys any browsers associated with it.
Via API
You can also do this by making a
DELETE
request to Kernel’s API:
Typescript/Javascript
Python
Copy
Ask AI
import
{
Kernel
}
from
'@onkernel/sdk'
;
await
Kernel
.
invocations
.
delete
(
invocationId
);
Via CLI
Use
ctrl-c
in the terminal tab where you launched the invocation.
Invoking
Previous
Status
Next
Assistant
Responses are generated using AI and may contain mistakes.