Hi,
As mentioned earlier, delete stuck queue is absolutely forbidden.
If you met the case status has been posted in EWM but in ERP still has the status of not being completed. Program /SCWM/R_MESSAGELOG_RESET can reset the message to ERP. You should implement the manual activities of note 1887522