Use
You can use the function module QUEUE_DELETE to delete data (unit) from a queue. This is done typically after processing is complete. End the call for this module with COMMIT WORK.
CALL FUNCTION 'QUEUE_DELETE'
EXPORTING
NAME = Name of Queue
UNIT = Unit
EXCEPTIONS
INVALID_PARAMETER
Q_ERROR
SQL_ERR.
COMMIT WORK.