pass config argument properly to search and delete_all commands. thanks @pawciobiel for the patch.