So basically my div generates like this:
content content <
something like this:
$('.className').not(':last').remove();
select all divs with .className, remove the last one from the selection, remove the collection of divs, and you will just keep the last one.
.className
demo: http://jsfiddle.net/j5728/