JavaScript
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
const runtime = await client.runtimes.delete('id');
console.log(runtime.id);import os
from rizaio import Riza
client = Riza(
api_key=os.environ.get("RIZA_API_KEY"), # This is the default and can be omitted
)
runtime = client.runtimes.delete(
"id",
)
print(runtime.id)package main
import (
"context"
"fmt"
"github.com/riza-io/riza-api-go"
"github.com/riza-io/riza-api-go/option"
)
func main() {
client := riza.NewClient(
option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("RIZA_API_KEY")
)
runtime, err := client.Runtimes.Delete(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", runtime.ID)
}{
"deleted": true,
"id": "<string>"
}{
"code": 16,
"message": "unauthenticated"
}Custom Runtimes
Delete a runtime
Deletes a runtime.
JavaScript
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
const runtime = await client.runtimes.delete('id');
console.log(runtime.id);import os
from rizaio import Riza
client = Riza(
api_key=os.environ.get("RIZA_API_KEY"), # This is the default and can be omitted
)
runtime = client.runtimes.delete(
"id",
)
print(runtime.id)package main
import (
"context"
"fmt"
"github.com/riza-io/riza-api-go"
"github.com/riza-io/riza-api-go/option"
)
func main() {
client := riza.NewClient(
option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("RIZA_API_KEY")
)
runtime, err := client.Runtimes.Delete(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", runtime.ID)
}{
"deleted": true,
"id": "<string>"
}{
"code": 16,
"message": "unauthenticated"
}⌘I