Question removing wildcard history or cookies using command line

quartzz1

Member
Aug 11, 2018
50
3
71
I'd like to make a batch file which does something like the following, definitely on chrome and maybe firefox

remove all history that contains *sometext1*
remove all history that contains *sometext2*
remove all history that contains *sometext3*

remove all cookies that contain *sometext1*
remove all cookies that contain *sometext2*
remove all cookies that contain *sometext3*

is this possible? thanks