---
title: "Delete Learning User"
method: DELETE
path: "/learnings/users/{user_id}"
tags: ["Learnings"]
---

# Delete Learning User

`DELETE /learnings/users/{user_id}`

Delete the learning records owned by a user. By default removes every learning type backed by the agno_learnings table (user_profile, user_memory, and any user-scoped entity records); pass `learning_type` to restrict deletion to a single store. Records with no owner (`user_id IS NULL`) are not affected. For a scoped (non-admin) caller, only their own learnings may be deleted; a different `user_id` is rejected with 403. Admins and unscoped callers may delete any user's learnings. Returns 204 even if the user had no matching records.

## Path parameters

- `user_id` string, required — The user whose learnings should be deleted

## Query parameters

- `learning_type` string, nullable — Restrict deletion to a single learning type; omit to delete all of the user's learnings
- `db_id` string, nullable — Database ID to use
- `table` string, nullable — The database table to use (requires db_id)

## Response `204`

Successful Response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.net/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agno/agno-api-reference/revisions/5f6149d395d0/schema)
