11

What is the ~/.var folder used for and is it safe to remove the content within this folder?

Rasmus
  • 8,655

2 Answers2

14

The ~/.var directory is normally used for Flatpak, since it stores its installed programs and their data. But, it could also be another program that's writing into that directory. Hope this helps.

12

Well, /var contains variable data files. This can include spool directories and files, administrative and logging data, and transient and temporary files.

Since it's under your home directory, it's probably safe to assume that files under ~/.var serve the same purpose as files under /var except that they are for your user only.

Perhaps an application that you use is storing important files there. You can certainly inspect the files yourself.

A good rule of thumb is that if you don't know what something does in a system or config folder, it's best to leave it alone.

Nmath
  • 12,664