Unable to remove an already deleted image in the document

When I try to delete a missing image (right-click the image → click the red “Delete” button at the bottom), the image is not removed.

Steps to reproduce

  1. Create a markdown document and insert an image.
  2. Delete the corresponding image file on disk.
  3. The image still appears in the document preview area. Right-click the image and click the red “Delete” button at the bottom.
  4. Notice that the image is not removed.

Did you follow the troubleshooting guide? [Y/N]

Yes.

Expected result

The image should be successfully deleted from the document, or a clear error message should be displayed if the file is missing.

Actual result

The image remains in the document even after trying to delete it via the context menu.

Environment

SYSTEM INFO:
Obsidian version: 1.13.4
Installer version: 1.8.10
Operating system: Windows 11 Pro 10.0.26200
Login status: not logged in
Language: zh
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none


Additional information

Thanks, fixed so that the “Delete image” menu item won’t appear if the image was already deleted. You can still use “Remove image” to remove the embed from the note.