lmstudio-ai / lmstudio-bug-tracker

Bug tracking for the LM Studio desktop application
10 stars 3 forks source link

Model Folder Remains in File System After Deletion from LM Studio #199

Open YorkieDev opened 1 week ago

YorkieDev commented 1 week ago

OS: Windows/Mac/Linux LM Studio Version: V0.3.5(build 4)

When a model is deleted from LM Studio, its associated folder is not removed from the local file system (Finder on macOS or File Explorer on Windows). This results in leftover folders under the "My Models" directory, which may lead to clutter and confusion about which models are in the user's My Models Tab.

Steps to Reproduce:

  1. Open LM Studio and navigate to the "My Models" tab.
  2. Press the 3 dots to reveal the model in Finder to confirm its contents
  3. Delete the selected model in LM Studio in your My Models tab by using the three dots menu -> Delete
  4. Open Finder (macOS) or File Explorer (Windows) and navigate to the "My Models" directory.

Expected Result: The model folder should be deleted from the file system when the model is removed from LM Studio.

Actual Result: The model folder remains in the "My Models" directory within the file system, despite being deleted from LM Studio. The model is deleted, but the folder structure remains (eg /Users/yorkie/.cache/lm-studio/models/lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF/emptydir)