Currently if there is email in queue and if user manually creates case then case gets creates but email remains in the CRM queue.
Another scenario is that there is automated workflow which creates case for the email which comes in queue and workflow creates case fine but email remains in the queue.
For above two problems there is not out of the box method to remove or detach the email from the queue. However when I check CRM 4.0 SDK there is API DetachFromQueueEmailRequest Based on which I have created following generic custom workflow which takes queue id and email id as Input and removes the relevant email from the relevant queue.
Register this custom workflow using Plug in Registration Tool and you can use this utility in CRM workflow screen now…
Code can be downloaded from following link
View & Download Code File