Skip to content

Move To Trash results in Failed to create FileOperation instance #3150

Open

Description

@itamadev

Description

When using the Move To Trash action it results in an error.

  • Can you reproduce the issue?

Steps to reproduce

  1. Create or access any project
  2. Select a file
  3. Click the Move To Trash option

Expected behavior:

The file should move to trash after the user has been notified of the action and warned.

Actual behavior:

An error occurs and the file remains untouched

Link to an example: [optional]

example

Versions

  • MarkText version: 0.17.1
  • Operating system: Windows 10

Activity

  1. itamadev commented on Mar 21, 2022

    @itamadev
    Author

    I'm aware this issue is some sort of a duplicate of #3137,
    I wanted to make it more descriptive and written as the contribution guidelines suggest.

  2. fxha commented on Mar 31, 2022

    @fxha
    Contributor

    @itamark-dev Is the file saved on a non-local disk or is MarkText executed as admin? The error most likely results from an error in Windows file API.

  3. added
    🐹 platform/windows
    🐤 blocked/need info
    on Mar 31, 2022
  4. WeberAlex commented on Apr 1, 2022

    @WeberAlex

    I am experiencing the same bug using MarkText 0.17.1 (portable) in Windows 11. The files are saved locally. I use an admin. account.

  5. tellmewhy12 commented on Apr 7, 2022

    @tellmewhy12

    Same here, I tried running MarkText normally and as Administrator. I can create folders and directories but not move them to trash

    I have Windows 11 21H2

  6. added a commit that references this issue on Apr 14, 2022
    4579b40
  7. added
    🐟 blocked/upstream
    and removed
    🐤 blocked/need info
    on Apr 14, 2022
  8. added a commit that references this issue on May 23, 2022
    3946cdb
  9. mohalikeyou commented on Oct 2, 2022

    @mohalikeyou

    Same here, I made MarkText as admin, and the file did stay in local disk, but i met this problem yet....

  10. stefanolomo commented on Dec 11, 2022

    @stefanolomo

    Same here

  11. mistbeforedawn commented on Dec 28, 2022

    @mistbeforedawn

    At the end of 2022, it's still there.

  12. sharmankin commented on Mar 5, 2023

    @sharmankin

    At the march of 2023, it's still there.

  13. StoneMoe commented on Jun 14, 2023

    @StoneMoe

    meet this issue on Windows, with a file saved on samba network location

  14. added a commit that references this issue on Aug 8, 2023
    b75895c
  15. XR-stb commented on Sep 14, 2024

    @XR-stb

    same here

  16. CNW-HuyDk commented on Apr 26, 2025

    @CNW-HuyDk

    well, it's April 2025 and still there

  17. dismalbone commented on Jul 9, 2025

    @dismalbone

    got this today

  18. Kircerta commented on Oct 30, 2025

    @Kircerta

    I confirm this issue exist. I saved the file in a folder inside documents, on Windows 11. I can not delete markdown files within the Marktext application itself.

  19. reopened this on Nov 18, 2025
  20. added a commit that references this issue on Jun 21, 2026
    2c4541d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐹 platform/windows🐟 blocked/upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions