Forget a profile's memories
Delete everything held about one profile. A 2xx means none of its memories are left, and its summary goes with them. There is no undo.
DELETE
/
ai
/
memory
/
namespaces
/
{namespace}
/
profiles
/
{profile_id}
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.ai.memory.namespaces.profiles.delete('namespace', 'profile_id');import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.ai.memory.namespaces.profiles.delete(
"namespace",
"profile_id",
)
package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.AI.Memory.Namespaces.Profiles.Delete(
context.TODO(),
"namespace",
"profile_id",
)
if err != nil {
panic(err.Error())
}
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
client.ai().memory().namespaces().profiles().delete("namespace", "profile_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
forget = telnyx.ai.memory.namespaces.profiles.delete("namespace", "profile_id")
puts(forget)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$forget = $client->ai->memory->namespaces->profiles->delete(
'namespace',
'profile_id',
);
var_dump($forget);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles delete \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_idcurl --request DELETE \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id} \
--header 'Authorization: Bearer <token>'{
"data": {
"profile_id": "caller:+13128675309",
"memories_deleted": 12
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request.",
"source": {
"pointer": "/"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}{
"errors": [
{
"code": "namespace_not_found",
"detail": "no such namespace"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}Authorizations
Telnyx API key
Path Parameters
The namespace. default exists for every organization.
The profile: your identifier for the user, caller or agent this memory is about.
Response
The profile's memories are gone
Show child attributes
Show child attributes
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.ai.memory.namespaces.profiles.delete('namespace', 'profile_id');import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.ai.memory.namespaces.profiles.delete(
"namespace",
"profile_id",
)
package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.AI.Memory.Namespaces.Profiles.Delete(
context.TODO(),
"namespace",
"profile_id",
)
if err != nil {
panic(err.Error())
}
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
client.ai().memory().namespaces().profiles().delete("namespace", "profile_id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
forget = telnyx.ai.memory.namespaces.profiles.delete("namespace", "profile_id")
puts(forget)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$forget = $client->ai->memory->namespaces->profiles->delete(
'namespace',
'profile_id',
);
var_dump($forget);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:profiles delete \
--api-key 'My API Key' \
--namespace namespace \
--profile-id profile_idcurl --request DELETE \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/profiles/{profile_id} \
--header 'Authorization: Bearer <token>'{
"data": {
"profile_id": "caller:+13128675309",
"memories_deleted": 12
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request.",
"source": {
"pointer": "/"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}{
"errors": [
{
"code": "namespace_not_found",
"detail": "no such namespace"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}