Memory API: Delete

The delete memory API endpoint allows you to delete an existing memory on Langbase dynamically with the API. This endpoint requires an Org or User API key.


Generate an Org/User API key

You will need to generate an API key to authenticate your requests. For more information, visit the Org/User API key documentation.


DELETE/beta/memorysets/{ownerLogin}/{memoryName}

Delete a memory

Delete a memory by specifying the owner login and memory name in the path.

Required headers

  • Name
    Content-Type
    Type
    string
    Description

    Request content type. Needs to be application/json.

  • Name
    Authorization
    Type
    string
    Description

    Replace <YOUR_API_KEY> with your Org/User API key.

Required path parameters

  • Name
    ownerLogin
    Type
    string
    Description

    The login name of the owner (either an organization or a user).

    Replace {ownerLogin} with your organization or user username.

  • Name
    memoryName
    Type
    string
    Description

    The name of the memory to delete.

    Replace {memoryName} with the name of the memory.

DELETE
/beta/memorysets/{ownerLogin}/{memoryName}
curl -X DELETE https://api.langbase.com/beta/memorysets/{ownerLogin}/{memoryName} \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "success": true
}