Undo of attachment doesn't delete attachment file

Steps to reproduce

  • Drag and drop file (in this case photo)
  • Undo with appropriate keyboard shortcut depending on OS (only tested on Mac OS)

Expected result

I expect that the action is reversed, including any file movement or creation.

Actual result

If I drag a photo into Obsidian (for example) and then “undo”, the link / photo is removed from the note (as expected), but the attached file is still present in the attachments folder (wherever that may be set).


  • Operating system: Mac OS Monterey
  • Debug info:

Additional information

Thanks, open a feature request for this.