curl -X DELETE "https://generativelanguage.googleapis.com/v1/interactions/$INTERACTION_ID" \ -H "x-goog-api-key: $GEMINI_API_KEY"
from google import genai
client = genai.Client()
client.interactions.delete(id=created.id)
print("Interaction deleted successfully.")
import {GoogleGenAI} from '@google/genai';
const ai = new GoogleGenAI({});
await ai.interactions.delete(created.id);
console.log('Interaction deleted successfully.');
import com.google.genai.Client;
import com.google.genai.gaos.models.interactions.Interaction;
Client client = new Client();
client.interactions.delete(interactionId);
System.out.println("Interaction deleted successfully.");
package main
import (
"context"
"fmt"
"log"
"google.golang.org/genai"
"google.golang.org/genai/interactions/models/operations"
)
func main() {
ctx := context.Background()
client, err := genai.NewClient(ctx, nil)
if err != nil {
log.Fatal(err)
}
req := operations.DeleteInteractionRequest{
ID: interactionID,
}
_, err = client.Interactions.Delete(
ctx,
req,
)
if err != nil {
log.Fatal(err)
}
fmt.Println("Interaction deleted successfully.")
}