fix config kwarg not being passed to search and delete_all and add test for it