KM's "Trash File' action fails if file is on iCloud Drive

I'm running macOS Tahoe 26.6 and Keyboard Maestro 11.1.1, the Keyboard Maestro Engine has Full Disk Access

I have a macro which uses the KM Trash File action, the macro has been in use for over a year and I've had no problems with the trash file action. The problem began after updating to macOS 26.6 and KM 11.1.1., unfortunately I cannot determine which update introduced the change because both were installed before I next used the macro.

What I'm seeing is that if I use the KM Trash File action on a file which is located on icloud drive it fails with: "You do not have permission to move the file 'filename' to the Bin."

What works:

  1. I can trash the icloud file in Finder.
  2. I can use AppleScript in a KM Execute Applescript action to "Delete POSIX file 'full path to file' " and the icloud file is moved to trash.
  3. The KM Delete File action works on the file on icloud drive, as do KM's move and copy file actions.
  4. If I use the KM trash file action on a file on my desktop or on an external APFS SSD it works as expected.

So I'm only seeing the failure when I use the KM Trash File action on a file stored on iCloud Drive.

I'm suspicious that Tahoe 26.6 may have changed the behavior of that API that KM uses to trash files, but as I also updated to 11.1.1 around the same time I can't rule out KM regression with my testing, and I don't have access to another machine with earlier version of the software.

I do not know whether it is / is not related to macOS 26.x but I has been reported before and before Keyboard Maestro 11.1.1.

Sorry, that is likely just Apple being Apple (though traditionally trashing files on the non-main harddisk doesn't properly work anyway and so this may be an extension of that).

Keyboard Maestro uses the system API:

[[NSWorkspace sharedWorkspace] recycleURLs:…

to trash the file so aside from permissions there is nothing Keyboard Maestro can do differently.

You can report it to Apple I guess, though I'm not sure I'd hold out much hope.

Thank you Peter. It looks like something happened in Tahoe 26.6 then, as the action has worked for a long time.

Having reviewed the macro as a result of this problem I've decided I'll change the action to a Delete File (which still works without a problem on iCloud Drive) rather than work around it with an AppleScript - I can cope without that file going to the trash, there are backups of it in the unlikely event I need to restore it.

You should report it to Apple. It seems an undesirable change.

I'm seeing this too and would like to report this to Apple.

Might you be willing to share the underlying method that you are using for this action?

TIA!