Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Trash Explorer

proogproog57k downloads

Restore and delete files from the Obsidian .trash folder.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates8

A plugin for Obsidian that makes it possible to list, restore, and delete files in the .trash folder in your Obsidian vault. This is useful if you're having trouble accessing hidden folders, such as on iOS.

Install Trash Explorer from Obsidian community plugins.

Screenshot of the trash explorer view

Usage

Important: this plugin works only with Obsidian's own .trash folder. It does not work with the system trash.

To enable this, open the settings and go to File & Links, then set Deleted files to Move to Obsidian trash.

Click the trash explorer icon in the ribbon or use Show trash explorer from the command palette. Then you can restore or delete files and folders with the buttons in the trash explorer view. It's also possible to delete all trashed files with the Empty trash command.

Items are restored to a vault location matching their location in the trash. For instance, .trash/Recipes/Belgian waffles.md will be restored to Recipes/Belgian waffles.md, creating any intermediate folders if they don't exist. If the restore path already exists in the vault, the item will not be restored; you'll have to rename the existing file to something else first.

Limitations

This plugin is at the mercy of where Obsidian places trashed items, as it has no access to their original location. In particular, Obsidian always moves items to the root of the .trash folder, regardless of their parent folder structure, so any parent folders will not be preserved when restoring. For instance, trashing the file Recipes/Belgian waffles.md will move it to .trash/Belgian waffles.md, and restoring it will move it to Belgian waffles.md in the root of the vault.

Development

UI testing

# tl;dr
npm install
./e2e-setup.sh /path/to/obsidian.app
npm run e2e

Running npm run e2e tests the plugin in an actual Obsidian app using Playwright. Each Playwright test restores a test vault, launches Obsidian, and performs automated actions to smoke-test the plugin in a real environment.

Before running npm run e2e, it's necessary to run e2e-setup.sh in a terminal and follow its instructions. The purpose of this script is to create a copy of Obsidian's files that are usable by Playwright as well as to configure Obsidian itself. The script has currently only been tested on macOS - it may or may not work on other operating systems (please make a PR!).

As for why the setup script is necessary:

It used to be possible to automate the regular Obsidian executable from Playwright, but starting with an Obsidian update in 2024 the app could no longer be launched without timing out. This is likely due to the EnableNodeCliInspectArguments fuse being disabled, a known issue that's also mentioned in the Playwright documentation. Flipping Electron fuses in a packaged app changes the app's signature which makes the OS refuse to launch it. This project tries to work around it by extracting the JavaScript source files from the Obsidian app using Electron's ASAR tool, then launch those with Electron itself.

Additionally, the E2E tests rely on a known test vault as the tests do manipulate real files in a real folder. As it's not currently possible to open a vault from the CLI unless Obsidian has previously opened it, it's necessary to manually open the e2e-vault in the unpacked Obsidian app before tests can be run against it.

77%
HealthGood
ReviewCaution
About
List, restore, and permanently delete files and folders in your vault's .trash folder. Restore items back to their matching vault paths or empty the trash to delete all trashed items. Work only with Obsidian's .trash (not the system trash); Obsidian may place trashed files at the trash root, so original parent folders may not be preserved.
FilesFoldersSidebar
Details
Current version
1.2.4
Last updated
4 months ago
Created
4 years ago
Updates
8 releases
Downloads
57k
Compatible with
Obsidian 0.15.0+
License
MIT
Report bugRequest featureReport plugin
Author
proogproog
permortensen.com
GitHubproog
  1. Community
  2. Plugins
  3. Files
  4. Trash Explorer

Related plugins

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Manual Sorting

Drag'n'Drop sorting within file explorer.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

File Explorer++

Hide and pin files and folders in the file explorer using custom filters.

Recent Files

Display a list of recently opened files.

Reveal Active File Button

Add a button to the top of the File Explorer, to reveal the active file.

Novel Word Count

Display a word count, page count, creation date, or other statistics for each file, folder and vault in the File Explorer pane.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.