How to delete previous queue transactions if count is more e.g 400 489 650 etc

If this previous transaction are in any status like failed success you can use get queue item and on get queue item along with the status you can apply filter of time as in date based filter.

Than for the retrieved item you can set status to removed / delete like this you can handle
@Shruthika_r

Thanks :grinning: