For example:
<div class='blah'>
<script>
$('.blah').remove();
</script>
</div>
Edit:
Okay, I got a lot of down-voting for this. I would rather know if this is a good idea, but since that is subjective let me ask: how does javascript handle a function that deletes itself?