Delete Learning

Storage and identity

Use a registered database with learning methods. Specify db_id when several databases are available; table also requires db_id. RemoteDb and adapters without learning support return 501.

Human JWT callers are scoped when user isolation is enabled. Non-admin service-account PAT callers always self-scope. Scoped readers can access their own and shared records; other-owned records return 404. Shared records cannot be modified or deleted by a scoped caller (403). Admins and unscoped callers retain access under the deployment's authentication and permission configuration.

The generated admin-only statement for shared records applies to scoped callers. Unscoped callers can also delete shared records. Success returns 204.

DELETE/learnings/{learning_id}

Permanently delete a learning record by its ID. Records with no owner (user_id IS NULL — shared agent/team/session/entity learnings) may only be deleted by an admin.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

learning_id*Learning Id

The learning ID

Query Parameters

db_id?|

Database ID to use

table?|

The database table to use (requires db_id)

Response Body

application/json

application/json

application/json

application/json

application/json

curl --request DELETE 'https://example.com/learnings/string'
Empty