This is my HTML DOM:
Goola1 volaa
Goola1
$('div').filter(function() { return $(this).has('span[class^="yak-bak"]'); }).remove();
DEMO
Or
$('div').filter(function() { return $(this).has('span[class^="yak-bak"], span[class*=" yak-bak"]'); }).remove();
But First one will enough.