DELETE
/
api
/
v1
/
users
/
profile
/
{user_id}
/
{profile_id}
Python
# To use the Python SDK, install the package:
# pip install memobase

from memobase import MemoBaseClient

client = MemoBaseClient(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')

user = client.get_user('user_id')
user.delete_profile('profile_id')
{
  "data": {},
  "errno": 0,
  "errmsg": ""
}
Delete a specific profile from a user’s long-term memory. This endpoint allows you to remove individual profile entries that are no longer needed.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
required

The ID of the user

profile_id
required

The ID of the profile to delete

Response

Successful Response

data
object | null

Response data payload

errno
enum<integer>

Error code, 0 means success

Available options:
0,
400,
401,
403,
404,
405,
409,
422,
500,
501,
502,
503,
504,
520
errmsg
string
default:""

Error message, empty when success