PageSourceSearch

https://docs.flathub.org/assets/js/d63bbd20.4e6dfe7a.js

js flathub.org collected 2026-09-24 08:38:27 UTC 6,435 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkflathub_docs_docusaurus=globalThis.webpackChunkflathub_docs_docusaurus||[]).push([[7114],{1880(e,n,a){a.r(n),a.d(n,{assets:()=>r,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"for-users/uninstallation","title":"Uninstallation","description":"Uninstalling applications","source":"@site/docs/01-for-users/09-uninstallation.md","sourceDirName":"01-for-users","slug":"/for-users/uninstallation","permalink":"/docs/for-users/uninstallation","draft":false,"unlisted":false,"editUrl":"https://github.com/flathub/documentation/tree/main/docs/01-for-users/09-uninstallation.md","tags":[],"version":"current","sidebarPosition":9,"frontMatter":{},"sidebar":"mainSidebar","previous":{"title":"Bisecting regressions in application builds","permalink":"/docs/for-users/bisecting"},"next":{"title":"Modifying default permissions","permalink":"/docs/for-users/permissions"}}');var t=a(4848),i=a(8453);const o={},l="Uninstallation",r={},d=[{value:"Uninstalling applications",id:"uninstalling-applications",level:2},{value:"Uninstalling unused dependencies",id:"uninstalling-unused-dependencies",level:2},{value:"Removing remotes",id:"removing-remotes",level:2}];function c(e){const n={admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"uninstallation",children:"Uninstallation"})}),"\n",(0,t.jsx)(n.h2,{id:"uninstalling-applications",children:"Uninstalling applications"}),"\n",(0,t.jsx)(n.p,{children:"These instructions will show you how to uninstall any application installed\nthrough Flatpak."}),"\n",(0,t.jsxs)(n.p,{children:["To just uninstall an application and keep its data in ",(0,t.jsx)(n.code,{children:"~/.var/app/<app-id>"}),"\nintact, you can run:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"flatpak uninstall <appid>\n"})}),"\n",(0,t.jsxs)(n.p,{children:["You can also use ",(0,t.jsx)(n.code,{children:"flatpak remove <appid>"})," as ",(0,t.jsx)(n.code,{children:"remove"})," is an alias for\n",(0,t.jsx)(n.code,{children:"uninstall"}),"."]}),"\n",(0,t.jsx)(n.admonition,{type:"danger",children:(0,t.jsx)(n.p,{children:"This will uninstall all application data stored by Flatpak. Please\nproceed carefully."})}),"\n",(0,t.jsxs)(n.p,{children:["To uninstall and also delete the data from ",(0,t.jsx)(n.code,{children:"~/.var/app/<app-id>"}),", you can\nrun:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"flatpak uninstall --delete-data <appid>\n"})}),"\n",(0,t.jsxs)(n.p,{children:["It will ask you to confirm using ",(0,t.jsx)(n.code,{children:"y/N"})," before proceeding. Anything\nstored outside of ",(0,t.jsx)(n.code,{children:"~/.var/app/<app-id>"})," is outside of Flatpak's control\nand might be left as is."]}),"\n",(0,t.jsxs)(n.p,{children:["Often you may have multiple branches of an application installed, for\nexample ",(0,t.jsx)(n.code,{children:"beta"})," and ",(0,t.jsx)(n.code,{children:"stable"})," or the same application installed from\nmultiple different remotes or the same application installed both in\nsystem and user locations."]}),"\n",(0,t.jsxs)(n.p,{children:["Then ",(0,t.jsx)(n.code,{children:"flatpak uninstall"})," will present you with a choice for the specific\nref and location to uninstall. For example:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{children:"$ flatpak uninstall org.example.foo\n\nSimilar installed refs found for \u2018org.example.foo\u2019:\n\n   1) app/org.example.foo/x86_64/stable (system)\n   2) app/org.example.foo/x86_64/beta (system)\n   3) app/org.example.foo/x86_64/beta (user)\n   4) All of the above\n\nWhich do you want to use (0 to abort)? [0-4]:\n"})}),"\n",(0,t.jsxs)(n.p,{children:["If you want only the ",(0,t.jsx)(n.code,{children:"beta"})," branch uninstalled from the ",(0,t.jsx)(n.code,{children:"system"})," location,\nchoose type ",(0,t.jsx)(n.code,{children:"2"})," in the terminal."]}),"\n",(0,t.jsx)(n.admonition,{type:"note",children:(0,t.jsxs)(n.p,{children:["Please be careful not to pass ",(0,t.jsx)(n.code,{children:"--delete-data"})," here, if you want to keep\nsome of them installed."]})}),"\n",(0,t.jsxs)(n.p,{children:["If you want all of them uninstalled, type ",(0,t.jsx)(n.code,{children:"4"})," in the terminal."]}),"\n",(0,t.jsx)(n.p,{children:"You can also uninstall applications from softw
1are stores provided by\nyour desktop environment or distribution like GNOME Software or\nKDE Discover."}),"\n",(0,t.jsx)(n.h2,{id:"uninstalling-unused-dependencies",children:"Uninstalling unused dependencies"}),"\n",(0,t.jsx)(n.p,{children:"Often when you have uninstalled a bunch of applications, there might be\nleftover runtimes that aren't needed anymore. To remove them you can run:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"flatpak uninstall --unused\n"})}),"\n",(0,t.jsx)(n.h2,{id:"removing-remotes",children:"Removing remotes"}),"\n",(0,t.jsx)(n.p,{children:"If you want to delete the remote too, you can run:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"flatpak remote-delete <remote-name>\n"})}),"\n",(0,t.jsx)(n.p,{children:"To see a list of remote names, you can run:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"flatpak remote-list\n"})}),"\n",(0,t.jsx)(n.p,{children:"If you have applications or runtimes still installed from that remote,\nyou will be asked whether to remove them too."}),"\n",(0,t.jsx)(n.p,{children:"If you want to just remove the remote but keep applications installed\nyou can run:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"flatpak remote-delete --force <remote-name>\n"})})]})}function p(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453(e,n,a){a.d(n,{R:()=>o,x:()=>l});var s=a(6540);const t={},i=s.createContext(t);function o(e){const n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.