cURL
curl --request POST \ --url http://localhost:3001/api/v1/terminal/{taskId}/destroy \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "sessionId": "<string>" } '
{ "success": true }
Destroy an existing terminal session
Session cookie authentication
Task ID the session belongs to
Terminal session ID to destroy
Terminal session destroyed