Deleting all the existing workitem before a bot starts

Hi Team,

I have gone through this topic

but i need more steps how to do it using both the ways.
or is there any other workaround to do it by using pop workitem ?