Delete Memory Items
curl --request DELETE \
--url https://api.example.com/admin/v1/items \
--header 'Content-Type: application/json' \
--data '
{
"itemIds": [
123
]
}
'import requests
url = "https://api.example.com/admin/v1/items"
payload = { "itemIds": [123] }
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({itemIds: [123]})
};
fetch('https://api.example.com/admin/v1/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/v1/items"
payload := strings.NewReader("{\n \"itemIds\": [\n 123\n ]\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"deletedCount": 123,
"affectedMemoryIds": [
"<string>"
]
}
}Memory Items
Delete Memory Items
DELETE
/
admin
/
v1
/
items
Delete Memory Items
curl --request DELETE \
--url https://api.example.com/admin/v1/items \
--header 'Content-Type: application/json' \
--data '
{
"itemIds": [
123
]
}
'import requests
url = "https://api.example.com/admin/v1/items"
payload = { "itemIds": [123] }
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({itemIds: [123]})
};
fetch('https://api.example.com/admin/v1/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/v1/items"
payload := strings.NewReader("{\n \"itemIds\": [\n 123\n ]\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"deletedCount": 123,
"affectedMemoryIds": [
"<string>"
]
}
}
