How to clear the Ready to Process or Scheduled queue process items?

Hi Team,

I see an option to clear the broken items(Instances of System-Message-QueueProcessor-BrokenItem). For delayed queue processing (Instances System-Message-QueueProcessor-DelayedItem). Is there any way that we can delete the Ready to process/Scheduled items?

From admin studio I can see the counts, there is a java function to get these counts. While loading the admin studio, these counts our server is almost dying.

Is there any option to display these items or to clear these items when I dont want (We can disable or can limit the queue items while queuing expecting other solutions).

Thanks in advance!

@SureshP16655111

Hi, out of the box I am not aware of any option to delete the instances of the Queue, but u can refer the below PDN article where they have the similar requirement to remove instances of Queue processor.

Remove items in Ready to Process

If i find any other option to not process them, I will share it.

@Abhiveer Jatla , Is there any ootb API exposed for this?

How can we remove one item or conditionally based on the queue page values?

Do we have any other method to delete Scheduled one’s also?

You need to change step from::

.withTopicName(“<QP_NAME IN CAPITAL LETTER>”) to

.withStreamName(“<QP_NAME IN CAPITAL LETTER>”)

withTopicName function is not working to me, so used withStreamName(), it Worked!

Thanks, the above solution worked!