I Don’t Want the rubbish Folder to Appear — But It Keeps Coming Back

Also, hi — I find the trash folder really annoying because when I use the search feature in Obsidian, deleted files still show up in the results, which makes it harder to find what I need.

(And in case you’re wondering, the detailed explanation below was written with ChatGPT to help describe the issue more clearly.)
I’m dealing with a frustrating issue: a folder that refuses to stay deleted, and I’d really appreciate your advice or shared experiences.

:bullseye: What I want to do:

Permanently delete a hidden folder named .tras (sometimes appears as rubbish) from my Obsidian vault. It seems to function as an internal trash folder for deleted files, but it clutters my workspace and makes organization difficult.


:magnifying_glass_tilted_left: What I’ve already tried (unsuccessfully):

:white_check_mark: Manual deletion:

  • Enabled hidden files in my system ([Windows/macOS/Linux]).
  • Deleted the .tras folder manually from the file explorer.
  • Temporarily paused Mega Sync to stop any regeneration.
  • Configured both Obsidian and my system to permanently delete files (not send to trash).

:pushpin: Result: The folder still reappears every time I reopen the vault — even with sync disabled.


:brain: My hypothesis:

Obsidian might be recreating the folder automatically, maybe as a built-in feature when detecting deleted notes. I no longer think this is just a sync issue.


:red_question_mark: What I’m looking for:

Does anyone know how to prevent or hide this folder?

I’d especially appreciate help with:

  • Can Obsidian be configured not to create .tras or rubbish?
  • Is there a plugin or setting to hide specific folders in the file explorer?
  • Any way to modify vault config files to ignore this f

If the rubbish folder is truly unrelated to Megasync this won’t help, but if you point Megasync to the folder a level above the vault, the rubish folder won’t show up inside the vault.

For example

  • Obsidian (Synced folder)
    • Vault 1
    • Vault 2
    • .rubbish (Automatically created)

A quick Google search indicated that the .tras folder is indeed created by MEGA to store files that have been deleted or moved locally, but this has not yet been synced to MEGA.

To hide the folder in Obsidian, go to Settings > Files and links > Excluded files > Manage and add .tras to the exclusion list.