Is it safe to delete .wine in root and in a home folder?

Questions about Wine on Linux
Locked
RobertX
Level 2
Level 2
Posts: 40
Joined: Thu Sep 09, 2021 9:57 pm

Is it safe to delete .wine in root and in a home folder?

Post by RobertX »

It's not that I don't need anything in those folders, it's more that I have no intentions to run anything in those folders.

I have made a Wine Prefix directory running 32-bit games and I intend to use only that for now.

Is it safe to delete the .wine folder in those two aforementioned (see topic) directories?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Is it safe to delete .wine in root and in a home folder?

Post by jkfloris »

You can remove those folders.

Keep in mind that if you accidentally give a wine command without specifying a wineprefix the folder will be created again. You can prevent this by replacing the .wine directory with an (empty) file.

Code: Select all

# Remove the wine directory
rm -r .wine

# Create an empty file
touch .wine
# or a placeholder
echo "# No default wineprefix" > .wine

# Optionally, make the file read only
chmod 400 .wine
RobertX
Level 2
Level 2
Posts: 40
Joined: Thu Sep 09, 2021 9:57 pm

Re: Is it safe to delete .wine in root and in a home folder?

Post by RobertX »

I'll be very careful.
Locked