---
id: clear-bank-memories
title: "Clear memory bank memories"
description: "Delete memory units for a memory bank. Optionally filter by type (world, experience, opinion) to delete only specific types. This is a destructive operation that cannot be undone. The bank profile (disposition and background) will be preserved."
sidebar_label: "Clear memory bank memories"
hide_title: true
hide_table_of_contents: true
api: eJzlVU1v4zYQ/SvEnBJAlRyjJ93SjYEGyHYXG7eXIFjQ5MjihiK5JGVHMPTfi6EkW64323bRW32RQc7ne48zB5AYhFcuKmughDvUGJE12FjfsdaoGFhlPePT0Yabl5x9SPZc645VSkf0bNOx2DlkV3vrtcwYvjr0Co3AjFmnjLLmmkXL5JDAGt2x4FCoSonkGXK2rlVgKjDOJIboWxHVDpl16DmlY7HmkQlujI1sg6w10hokN0xlMedtpTSyK6mCs0ElJ24k23DxsvW2NfKa7ZXW5O08BvQ7lDlkcMxxL6EEoZH7zxTyc+paYYAMHPe8wYg+QPl0AMMbhBKSlZKQgSL8HI81ZODxa6s8SiijbzGDIGpsOJQHoFahhBC9MlvIIKqo6eAXauBeQt9nx9jJdgz8tUXfnUWuuA5nobnpPlSptvMkFHE8Ma3W0D9nf2F9opNVXMSBx5HW79E5q35N4fv/KCzV5zE4awIGamy5WNDnPPhjKwSGULWafRqNIQNhTUQTExzOaSUSq8WXQD6HGVjOE+dRDRnCEGxG0MZajdzMehwTEkOTkd18QRHPWHk6xno+uQ6valbmeSvTBWusRJ3e2/RMJl0GUim+8sZRwFnBpK+efhn8vFxewvQH10oOz2flvfU/jpHEyJWmfypiEy4NtBVnt/9Aj8pE3KKH/vkEKveedzPcH+xQIOmrCdvvPaL3GALfJiUOJm+bJjDYoNu/IZT6GlKPdjNmT/AO6L7dxt0A37eSTSa/rtcfLwIO3DYYa0uzaRBGGkexhhKK3U0hseKtjgXNolAcxpHUF7PhpUxlExxTKmVkUNs6MkrKbj/eX6hyukh6PNqP+uEi6WccVO+H3fDYhYgNYaCVQFL6yeTWcVEjW+YLyKD1GkqoY3ShLIr9fp/zdJ1bvy1G31A83L9b/fa4+mmZL/I6NpoC79CHobybfJEv6MjZEBtuZrne0fyeLyw2Q+KsycPpMfxfV98oxoivsXCaq/TOEkGHUWNPsLtJwCWVQZZ2HkFZnpbfEeDnDGobInkdDhse8Hev+56Ohw1G40CqwDd6tsPe5OTHF9O3unrB7rRVd1y3ZJLWzY57RSX9y/KuPo1j4pq9lXOaBqab55xqmQBM869GLtGnEobbWyHQxZnfxbim2o+j4W71sFqvoO//BMBMZxI=
sidebar_class_name: "delete api-method"
info_path: docs/api-reference/endpoints/hindsight-http-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Clear memory bank memories"}
>
</Heading>

<MethodEndpoint
  method={"delete"}
  path={"/v1/default/banks/{bank_id}/memories"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Delete memory units for a memory bank. Optionally filter by type (world, experience, opinion) to delete only specific types. This is a destructive operation that cannot be undone. The bank profile (disposition and background) will be preserved.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"name":"bank_id","in":"path","required":true,"schema":{"type":"string","title":"Bank Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional fact type filter (world, experience, opinion)","title":"Type"},"description":"Optional fact type filter (world, experience, opinion)"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"DeleteResponse","description":"Response model for delete operations.","example":{"success":true}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}
>
  
</StatusCodes>


      