Delete a message

I was looking at creating a Action Mail Extension to programatically delete an e-mail in MacOS Mail. However, it seems MEMessageAction only supports moving the message to the Trash folder (or Junk and Archive).

Mail (v16) itself seems to offer this capability in its' Junk Mail Advanced dialog's "Perform the following actions" picker in the form of a "Delete Message" choice. However, in practice I haven't been able to get this to work for an iCloud account which is why I was looking into the Mail Extensions route.

Is this an action that could be addressed in a future rev. of Mail Extensions or is there a different way I could go about this today?

Thank you!