Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Remove PTY session

Terminate and remove one PTY session.

DELETE/api/pty/{ptyID}
Path parameters
ptyIDobjectrequired
Query parameters
locationobject | any
Responses
204<No Content>
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
404PtyNotFoundError
_tagstringrequired
Allowed:PtyNotFoundError
ptyIDstringrequired
messagestringrequired
Request
curl -X DELETE "/api/pty/%5Bobject%20Object%5D"
Response
<No Content>