1 line
No EOL
9.6 KiB
JavaScript
1 line
No EOL
9.6 KiB
JavaScript
"use strict";(globalThis.webpackChunkopenrag_docs=globalThis.webpackChunkopenrag_docs||[]).push([[5668],{2046:(e,n,s)=>{s.d(n,{Ay:()=>c,RM:()=>l});var o=s(4848),r=s(8453);const l=[];function t(e){const n={code:"code",li:"li",ol:"ol",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(n.ol,{start:"2",children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Remove all containers, including stopped containers:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker rm --force $(docker ps -aq)\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman rm --all --force\n"})}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Remove all images:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker rmi --force $(docker images -q)\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman rmi --all --force\n"})}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Remove all volumes:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker volume prune --force\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman volume prune --force\n"})}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Remove all networks except the default network:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker network prune --force\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman network prune --force\n"})}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Clean up any leftover data:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker system prune --all --force --volumes\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman system prune --all --force --volumes\n"})}),"\n"]}),"\n"]})}function c(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(t,{...e})}):t(e)}},4577:(e,n,s)=>{s.d(n,{Ay:()=>c,RM:()=>l});var o=s(4848),r=s(8453);const l=[];function t(e){const n={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker stop $(docker ps -q)\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman stop --all\n"})})]})}function c(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(t,{...e})}):t(e)}},5126:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>p,contentTitle:()=>d,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>h});const o=JSON.parse('{"id":"get-started/uninstall","title":"Remove OpenRAG","description":"If you want to reset your OpenRAG containers without removing OpenRAG entirely, see Reset OpenRAG containers and Reinstall OpenRAG.","source":"@site/docs/get-started/uninstall.mdx","sourceDirName":"get-started","slug":"/uninstall","permalink":"/uninstall","draft":false,"unlisted":false,"editUrl":"https://github.com/openrag/openrag/tree/main/docs/docs/get-started/uninstall.mdx","tags":[],"version":"current","frontMatter":{"title":"Remove OpenRAG","slug":"/uninstall"},"sidebar":"tutorialSidebar","previous":{"title":"Reinstall OpenRAG","permalink":"/reinstall"},"next":{"title":"Use the TUI","permalink":"/tui"}}');var r=s(4848),l=s(8453),t=s(9809),c=s(4577),a=s(2046);const i={title:"Remove OpenRAG",slug:"/uninstall"},d=void 0,p={},h=[{value:"Uninstall TUI-managed deployments",id:"uninstall-tui-managed-deployments",level:2},{value:"Uninstall self-managed deployments",id:"uninstall-self-managed-deployments",level:2},{value:"Uninstall with <code>docker compose</code> or <code>podman compose</code>",id:"uninstall-with-docker-compose-or-podman-compose",level:3},...t.RM,{value:"Uninstall with discrete <code>docker</code> or <code>podman</code> commands",id:"uninstall-with-discrete-docker-or-podman-commands",level:3},...c.RM,...a.RM];function m(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",ol:"ol",p:"p",pre:"pre",...(0,l.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.admonition,{type:"tip",children:(0,r.jsxs)(n.p,{children:["If you want to reset your OpenRAG containers without removing OpenRAG entirely, see ",(0,r.jsx)(n.a,{href:"/manage-services",children:"Reset OpenRAG containers"})," and ",(0,r.jsx)(n.a,{href:"/reinstall",children:"Reinstall OpenRAG"}),"."]})}),"\n",(0,r.jsx)(n.h2,{id:"uninstall-tui-managed-deployments",children:"Uninstall TUI-managed deployments"}),"\n",(0,r.jsxs)(n.p,{children:["If you used the ",(0,r.jsx)(n.a,{href:"/install",children:"automated installer script"})," or ",(0,r.jsx)(n.a,{href:"/install-uvx",children:(0,r.jsx)(n.code,{children:"uvx"})})," to install OpenRAG, clear your ",(0,r.jsx)(n.code,{children:"uv"})," cache (",(0,r.jsx)(n.code,{children:"uv cache clean"}),") to remove the TUI environment, and then delete the directory containing your OpenRAG configuration files and data (where you would invoke OpenRAG)."]}),"\n",(0,r.jsxs)(n.p,{children:["If you used ",(0,r.jsx)(n.a,{href:"/install-uv",children:(0,r.jsx)(n.code,{children:"uv"})})," to install OpenRAG, run ",(0,r.jsx)(n.code,{children:"uv remove openrag"})," in your Python project."]}),"\n",(0,r.jsx)(n.h2,{id:"uninstall-self-managed-deployments",children:"Uninstall self-managed deployments"}),"\n",(0,r.jsx)(n.p,{children:"For self-managed services, destroy the containers, prune any additional container objects, delete any remaining OpenRAG files, and then shut down the Docling service."}),"\n",(0,r.jsxs)(n.h3,{id:"uninstall-with-docker-compose-or-podman-compose",children:["Uninstall with ",(0,r.jsx)(n.code,{children:"docker compose"})," or ",(0,r.jsx)(n.code,{children:"podman compose"})]}),"\n",(0,r.jsxs)(n.p,{children:["Use these steps to uninstall a self-managed OpenRAG deployment with streamlined ",(0,r.jsx)(n.code,{children:"docker compose"})," or ",(0,r.jsx)(n.code,{children:"podman compose"})," commands:"]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Destroy the containers, volumes, and local images, and then remove (prune) any additional container objects:"}),"\n",(0,r.jsx)(t.Ay,{}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Remove OpenRAG's ",(0,r.jsx)(n.code,{children:".env"})," file and the ",(0,r.jsx)(n.code,{children:"~/.openrag/documents"})," directory, which aren't deleted by the previous commands."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Stop ",(0,r.jsx)(n.code,{children:"docling-serve"}),":"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"uv run python scripts/docling_ctl.py stop\n"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.h3,{id:"uninstall-with-discrete-docker-or-podman-commands",children:["Uninstall with discrete ",(0,r.jsx)(n.code,{children:"docker"})," or ",(0,r.jsx)(n.code,{children:"podman"})," commands"]}),"\n",(0,r.jsxs)(n.p,{children:["Use these commands to uninstall a self-managed OpenRAG deployment with discrete ",(0,r.jsx)(n.code,{children:"docker"})," or ",(0,r.jsx)(n.code,{children:"podman"})," commands:"]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Stop all running containers:"}),"\n",(0,r.jsx)(c.Ay,{}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(a.Ay,{}),"\n",(0,r.jsxs)(n.ol,{start:"7",children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Remove OpenRAG's ",(0,r.jsx)(n.code,{children:".env"})," file and the ",(0,r.jsx)(n.code,{children:"~/.openrag/documents"})," directory, which aren't deleted by the previous commands."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Stop ",(0,r.jsx)(n.code,{children:"docling-serve"}),":"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"uv run python scripts/docling_ctl.py stop\n"})}),"\n"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>t,x:()=>c});var o=s(6540);const r={},l=o.createContext(r);function t(e){const n=o.useContext(l);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:t(e.components),o.createElement(l.Provider,{value:n},e.children)}},9809:(e,n,s)=>{s.d(n,{Ay:()=>c,RM:()=>l});var o=s(4848),r=s(8453);const l=[];function t(e){const n={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Docker"',children:"docker compose down --volumes --remove-orphans --rmi local\ndocker system prune -f\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Podman"',children:"podman compose down --volumes --remove-orphans --rmi local\npodman system prune -f\n"})})]})}function c(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(t,{...e})}):t(e)}}}]); |