How can I delete history for specifc matching rows in Safari

I want to delete specific site results from history of Safari. Here I can see the results from History => Show All History: When I select all rows (cmd-a) and apply delete it deletes one-by-one instead of all together. This also consumes extre memory. Example screen view when I attempt to delete all rows, it just deletes them one by one: Instead is there any way to delete all matching rows at once from a file?

How can I delete history for specifc matching rows in Safari

I want to delete specific site results from history of Safari.

Here I can see the results from History => Show All History:

enter image description here

When I select all rows (cmd-a) and apply delete it deletes one-by-one instead of all together. This also consumes extre memory.

Example screen view when I attempt to delete all rows, it just deletes them one by one:

enter image description here

Instead is there any way to delete all matching rows at once from a file?