[Bug] Uninstalling a theme from Obsidian doesn't remove its folder from the .settings directory

Bug Description

When we uninstall a theme from Obsidian, the theme folder under the settings directory (e.g., .obsidian/theme/* by default) doesn’t get deleted. The folder stays empty on the directory.

Steps to Reproduce

  1. Uninstall a theme from the Obsidian settings.

Expected Outcome

The theme directory (for that particular theme which was uninstalled) should be completely removed from the settings directory.

Actual Outcome

The theme directory stays as an empty folder in the settings directory (by default .obsidian/themes/[uninstalled theme folder]/

Additional Information

themes directory before uninstallation:

~OSpath/[Vault Folder]/.obsidian/themes/minimal    folder
~OSpath/[Vault Folder]/.obsidian/themes/minimal/manifest.json    file
~OSpath/[Vault Folder]/.obsidian/themes/minimal/theme.css    file

themes directory after uninstallation:

~OSpath/[Vault Folder]/.obsidian/themes/minimal    folder (empty)

(I could only replicate this on Windows Obdisian version. Couldn’t replicate on iOS Obsidian Mobile. Haven’t tried other platforms.)

Obsidian Version: 1.8.10
Windows: 11 24H2

Thanks for brining this up. Went into my Themes folder and found empty folders for three themes I had deleted previously.
(Windows Pro with the latest Obsidian.)