Cleaup leftover Bottles if something goes wrong

After the headache of dealing with a hard drives filesystem randomly having IO errors, resulting in it being set to read only, i had to do some cleaning several times before finding a fix, due to Bottles NOT properly removing those leftover Bottles, causing problems when creating new ones.

This happened due to me changing the default Bottles Directory to another drive, so i can start saving some space on my main drive, but as Murphy's law goes: "Anything that can go wrong will go wrong.", and so it did.

I was using the Flatpak version of Bottles v67.6, and managed to fix the problem in the end (out of topic, but it was a misbehaving partition, which needed to be reformatted and its label kept very short).

But, as i was working out a solution, i had to remove the annoying leftovers after every attempt, and if you are dealing with similar problems using Bottles, i hope this article helps.

Where the Bottles are stored

They are stored in the directory set as the Bottles Directory. By default, that is ~/.var/app/com.usebottles.bottles/data/bottles/bottles/ if not overriden.

What to delete

Inside the Bottles Directory, find the ones that are NOT listed in the Bottles UI, and delete those directories there manually.

That is it.

Povezave

Socialno