Permanently delete memories that have been expired longer than the purge window.
memanto policy purge
Permanently delete memories that have already been expired for longer than the
policy’s purge_expired_after window.
This is the only destructive step in the memory lifecycle and it cannot be undone.
Purged memories are gone from the backend — memanto memory restore will not
bring them back.
memanto policy purge [OPTIONS]
Options:
-a, --agent TEXT - Agent identifier (defaults to active agent)
--dry-run - Show what would be deleted without deleting
Purging is disabled for this agent.Set 'purge_expired_after' in the policy to enable it.
With a window set:
1 memory/memories expired more than 365d ago. d6d622be-49d5-4f4d-921a-64140f24dc98 — Deploys go through the release botThis permanently deletes 1 memory/memories. They cannot be restored.Purge them? [y/N]: yPurged 1 memories.
purge_expired_after is not a retention setting. retention decides what
becomes expired; this decides when an already-expired memory is destroyed. A
policy where policy apply reports 0 matches can still have
memories eligible for purge.
Notes:
Disabled unless the policy sets purge_expired_after. Every preset except aggressive leaves it off.
Only memories carrying an expired_at stamp are eligible — an expired record with no stamp has no defensible purge date and is left alone.
The window is measured from expired_at, not from when the memory was created.
Always previews before prompting, even without --dry-run.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MEMANTO Docs","colors":{"primary":"#4F46E5","light":"#5534a5","dark":"#3730A3"},"logo":{"light":"https://mintcdn.com/memanto/JQUnQj6yuS5LxN7l/logo/memanto-light.svg?fit=max\u0026auto=format\u0026n=JQUnQj6yuS5LxN7l\u0026q=85\u0026s=e21bed11bb5bd3855ecb20f969a948d2","dark":"https://mintcdn.com/memanto/JQUnQj6yuS5LxN7l/logo/memanto-dark.svg?fit=max\u0026auto=format\u0026n=JQUnQj6yuS5LxN7l\u0026q=85\u0026s=13e3ee69ddd14911bfb1633de39fb180"},"favicon":"https://mintcdn.com/memanto/II1GP7bpRVzYh2QP/favicon.png?fit=max\u0026auto=format\u0026n=II1GP7bpRVzYh2QP\u0026q=85\u0026s=fae7eadd5c785a791814603552f73232","navbar":{"links":[{"href":"https://memanto.ai/discord","label":"Support"},{"href":"https://www.reddit.com/r/Memanto/","label":"Reddit"}],"primary":{"type":"button","label":"Get API Key","href":"https://console.moorcheh.ai/api-keys"}},"fonts":{"family":"JetBrains Mono"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://memanto.ai/discord"},{"anchor":"Reddit","icon":"reddit","href":"https://www.reddit.com/r/Memanto/"},{"anchor":"GitHub","icon":"github","href":"https://github.com/moorcheh-ai/memanto"},{"anchor":"Blog","icon":"newspaper","href":"https://memanto.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"memanto","hasAudioNarration":false,"actualSubdomain":"memanto","customDomains":["docs.memanto.ai"],"gitSource":{"type":"github","owner":"majidfekri1983-stack","repo":"memanto-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afde791c59e41c048a51eca","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Integrations","count":80},{"language":"default","tag":"CLI","count":39},{"language":"default","tag":"API Reference","count":34},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Data","count":19},{"language":"default","tag":"Expiry Policy","count":12},{"language":"default","tag":"UI","count":11},{"language":"default","tag":"Dashboard","count":11},{"language":"default","tag":"Agent Management","count":8},{"language":"default","tag":"Getting Started","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"sidebar-filter.css","content":"#integrations-filter{width:100%;margin:0.25rem 0 0.5rem;padding:0.35rem 0.6rem;border:1px solid rgb(0 0 0 / 0.12);border-radius:0.5rem;background:transparent;color:inherit;font-size:0.8125rem;line-height:1.25rem}#integrations-filter::placeholder{opacity:0.6}#integrations-filter:focus{outline:none;border-color:#4f46e5}.dark #integrations-filter{border-color:rgb(255 255 255 / 0.15)}"}],"page":{"pagePath":"cli/policy/purge","slug":"/cli/policy/purge","pageMetadata":{"title":"memanto policy purge","description":"Permanently delete memories that have been expired longer than the purge window.","href":"/cli/policy/purge"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Permanently delete memories that have been expired longer than the purge window.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`memanto-policy-purge`,children:`memanto policy purge`}),`\n`,_jsxs(_components.p,{children:[`Permanently delete memories that have `,_jsx(_components.strong,{children:`already been expired`}),` for longer than the\npolicy’s `,_jsx(_components.code,{children:`purge_expired_after`}),` window.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This is the only destructive step in the memory lifecycle and it cannot be undone.\nPurged memories are gone from the backend — `,_jsx(_components.code,{children:`memanto memory restore`}),` will not\nbring them back.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`memanto`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` policy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` purge`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [OPTIONS]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Options:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`-a, --agent TEXT`}),` - Agent identifier (defaults to active agent)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--dry-run`}),` - Show what would be deleted without deleting`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`-y, --yes`}),` - Skip the confirmation prompt`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Examples:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`memanto`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` policy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` purge`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`memanto`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` policy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` purge`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Output:`})}),`\n`,_jsx(_components.p,{children:`Disabled (the default):`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Purging is disabled for this agent.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Set 'purge_expired_after' in the policy to enable it.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`With a window set:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1 memory/memories expired more than 365d ago.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` d6d622be-49d5-4f4d-921a-64140f24dc98 — Deploys go through the release bot`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`This permanently deletes 1 memory/memories. They cannot be restored.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Purge them? [y/N]: y`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Purged 1 memories.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`purge_expired_after`}),` is `,_jsx(_components.strong,{children:`not`}),` a retention setting. `,_jsx(_components.code,{children:`retention`}),` decides what\nbecomes `,_jsx(_components.code,{children:`expired`}),`; this decides when an already-expired memory is destroyed. A\npolicy where `,_jsx(_components.a,{href:`/cli/policy/apply`,children:_jsx(_components.code,{children:`policy apply`})}),` reports 0 matches can still have\nmemories eligible for purge.`]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Notes:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Disabled unless the policy sets `,_jsx(_components.code,{children:`purge_expired_after`}),`. Every preset except `,_jsx(_components.code,{children:`aggressive`}),` leaves it off.`]}),`\n`,_jsxs(_components.li,{children:[`Only memories carrying an `,_jsx(_components.code,{children:`expired_at`}),` stamp are eligible — an expired record with no stamp has no defensible purge date and is left alone.`]}),`\n`,_jsxs(_components.li,{children:[`The window is measured from `,_jsx(_components.code,{children:`expired_at`}),`, not from when the memory was created.`]}),`\n`,_jsxs(_components.li,{children:[`Always previews before prompting, even without `,_jsx(_components.code,{children:`--dry-run`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Backed by the `,_jsx(_components.a,{href:`/api-reference/policy/purge-expired`,children:`Purge Expired Memories`}),` API endpoint.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"memanto policy purge","description":"Permanently delete memories that have been expired longer than the purge window.","href":"/cli/policy/purge"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"memanto policy purge","slug":"memanto-policy-purge","depth":1,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/memanto/2d29b368f4ea4737/sidebar-filter.js"],"subdomain":"memanto","siteName":"MEMANTO Docs","title":"memanto policy purge - MEMANTO Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-20T14:57:57.523Z","originalFileLocation":"cli/policy/purge.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Permanently delete memories that have been expired longer than the purge window.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MEMANTO Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintcdn.com/memanto/II1GP7bpRVzYh2QP/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=II1GP7bpRVzYh2QP\u0026amp;q=85\u0026amp;s=fae7eadd5c785a791814603552f73232\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintcdn.com/memanto/II1GP7bpRVzYh2QP/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=II1GP7bpRVzYh2QP\u0026amp;q=85\u0026amp;s=fae7eadd5c785a791814603552f73232\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintcdn.com/memanto/II1GP7bpRVzYh2QP/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=II1GP7bpRVzYh2QP\u0026amp;q=85\u0026amp;s=fae7eadd5c785a791814603552f73232\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://mintcdn.com/memanto/II1GP7bpRVzYh2QP/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=II1GP7bpRVzYh2QP\u0026amp;q=85\u0026amp;s=fae7eadd5c785a791814603552f73232\">\u003cmeta data-mint-head property=\"og:title\" content=\"memanto policy purge - MEMANTO Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permanently delete memories that have been expired longer than the purge window.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MEMANTO Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.memanto.ai/cli/policy/purge\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://memanto.mintlify.site/_mintlify/api/og/v2?division=Expiry+Policy\u0026amp;title=memanto+policy+purge\u0026amp;description=Permanently+delete+memories+that+have+been+expired+longer+than+the+purge+window.\u0026amp;theme=f259f5aa3a011bcc694ef06c\u0026amp;signature=28d22f1a1d5221c970a22eb8c2745ed78de96e0367191fe70b510c4019f973e8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"memanto policy purge - MEMANTO Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permanently delete memories that have been expired longer than the purge window.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://memanto.mintlify.site/_mintlify/api/og/v2?division=Expiry+Policy\u0026amp;title=memanto+policy+purge\u0026amp;description=Permanently+delete+memories+that+have+been+expired+longer+than+the+purge+window.\u0026amp;theme=f259f5aa3a011bcc694ef06c\u0026amp;signature=28d22f1a1d5221c970a22eb8c2745ed78de96e0367191fe70b510c4019f973e8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/memanto/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MEMANTO Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F46E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.memanto.ai/cli/policy/purge\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/policy/purge.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.memanto.ai/#organization\",\"name\":\"MEMANTO Docs\",\"url\":\"https://docs.memanto.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/memanto/JQUnQj6yuS5LxN7l/logo/memanto-light.svg?fit=max\u0026auto=format\u0026n=JQUnQj6yuS5LxN7l\u0026q=85\u0026s=e21bed11bb5bd3855ecb20f969a948d2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.memanto.ai#website\",\"name\":\"MEMANTO Docs\",\"url\":\"https://docs.memanto.ai\",\"publisher\":{\"@id\":\"https://docs.memanto.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.memanto.ai/cli/policy/purge#webpage\",\"url\":\"https://docs.memanto.ai/cli/policy/purge\",\"name\":\"memanto policy purge\",\"description\":\"Permanently delete memories that have been expired longer than the purge window.\",\"dateModified\":\"2026-08-20T14:57:57.523Z\",\"isPartOf\":{\"@id\":\"https://docs.memanto.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.memanto.ai/cli/policy/purge#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.memanto.ai/cli/policy/purge#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Expiry Policy\",\"item\":\"https://docs.memanto.ai/cli/policy/show\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"memanto policy purge\",\"item\":\"https://docs.memanto.ai/cli/policy/purge\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.memanto.ai/cli/policy/purge#article\",\"headline\":\"memanto policy purge\",\"name\":\"memanto policy purge\",\"description\":\"Permanently delete memories that have been expired longer than the purge window.\",\"url\":\"https://docs.memanto.ai/cli/policy/purge\",\"mainEntityOfPage\":{\"@id\":\"https://docs.memanto.ai/cli/policy/purge#webpage\"},\"dateModified\":\"2026-08-20T14:57:57.523Z\",\"publisher\":{\"@id\":\"https://docs.memanto.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.memanto.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MEMANTO Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MEMANTO Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/policy/purge.md","siteName":"MEMANTO Docs","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://memanto.ai/discord"},{"anchor":"Reddit","icon":"reddit","href":"https://www.reddit.com/r/Memanto/"},{"anchor":"GitHub","icon":"github","href":"https://github.com/moorcheh-ai/memanto"},{"anchor":"Blog","icon":"newspaper","href":"https://memanto.ai/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/getting-started/introduction"}]},{"tab":"CLI","groups":[{"group":"Getting Started","pages":[{"title":"CLI Overview","href":"/cli/overview"},{"title":"memanto serve","href":"/cli/core/serve"}]},{"group":"Agent Management","pages":[{"title":"memanto agent create","href":"/cli/agents/create"},{"title":"memanto agent list","href":"/cli/agents/list"},{"title":"memanto agent delete","href":"/cli/agents/delete"},{"title":"memanto agent bootstrap","href":"/cli/agents/bootstrap"}]},{"group":"Session Management","pages":[{"title":"memanto agent activate","href":"/cli/sessions/activate"},{"title":"memanto agent deactivate","href":"/cli/sessions/deactivate"},{"title":"memanto session info","href":"/cli/sessions/info"}]},{"group":"Data","pages":[{"title":"memanto remember","href":"/cli/data/remember"},{"title":"memanto edit","href":"/cli/data/edit"},{"title":"memanto forget","href":"/cli/data/forget"},{"title":"memanto memory expire","href":"/cli/data/expire"},{"title":"memanto memory restore","href":"/cli/data/restore"},{"title":"memanto upload","href":"/cli/data/upload"},{"title":"memanto memory export","href":"/cli/data/export"},{"title":"memanto memory sync","href":"/cli/data/sync"}]},{"group":"Migrate","pages":[{"title":"memanto migrate","href":"/cli/migrate/migrate"}]},{"group":"Search \u0026 Discovery","pages":[{"title":"memanto recall","href":"/cli/search/recall"}]},{"group":"Expiry Policy","pages":[{"title":"memanto policy show","href":"/cli/policy/show"},{"title":"memanto policy list-preset","href":"/cli/policy/list-preset"},{"title":"memanto policy apply-preset","href":"/cli/policy/apply-preset"},{"title":"memanto policy apply","description":"Sweep the agent's memories and expire everything the policy matches.","href":"/cli/policy/apply"},{"title":"memanto policy purge","href":"/cli/policy/purge"}]},{"group":"AI Generation","pages":[{"title":"memanto answer","description":"Get AI-powered answers grounded in the active agent's memories.","href":"/cli/ai/answer"},{"title":"memanto daily-summary","href":"/cli/ai/daily-summary"},{"title":"memanto detect-conflicts","href":"/cli/ai/detect-conflicts"},{"title":"memanto conflicts","href":"/cli/ai/conflicts"}]},{"group":"System \u0026 Configuration","pages":[{"title":"memanto status","href":"/cli/core/status"},{"title":"memanto config show","href":"/cli/config/show"},{"title":"memanto config backend","href":"/cli/config/backend"}]},{"group":"Schedule","pages":[{"title":"memanto schedule enable","href":"/cli/schedule/enable"},{"title":"memanto schedule disable","href":"/cli/schedule/disable"},{"title":"memanto schedule status","href":"/cli/schedule/status"}]},{"group":"Connect","pages":[{"title":"memanto connect","href":"/cli/connect/connect"},{"title":"memanto connect update","href":"/cli/connect/update"},{"title":"memanto connect list","href":"/cli/connect/list"},{"title":"memanto connect remove","href":"/cli/connect/remove"},{"title":"memanto connect multi","href":"/cli/connect/multi"}]}]},{"tab":"UI","pages":[{"title":"UI","href":"/ui/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/authentication"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/python"}]},{"tab":"On-Prem","pages":[{"title":"On-Prem","href":"/on-prem/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"memanto policy purge - MEMANTO Docs","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}