Skip to main content
from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.12-base-small")
ctx = client.runtime.create_code_context(runtime.runtime_id)

# Delete the context
response = client.runtime.delete_code_context(runtime.runtime_id, ctx.context_id)
print(response.message)

client.runtime.kill(runtime.runtime_id)

Parameters

ParameterTypeRequiredDescription
runtime_idstringYesRuntime identifier
context_idstringYesContext identifier

Response

FieldTypeDescription
messagestringConfirmation message
context_idstringDeleted context ID