Run the below SQL command in phpMyAdmin. Replace portion CODE_TO_SEARCH with the code you want removed. Make sure database table prefix matches the site you are doign this on.
update wp_posts set post_content = replace(post_content,'Text to find','text to replace with');