want to unwrap html using jquery/javascript

want to unwrap html using jquery/javascript

I want to unwrap below html using jquery or javscript.

for wrap i used below code but on few pages I want to unwrap that part. 
$('.ms-rte-embedcode.ms-rte-embedwp')
    .wrap('<div class="container"><div class="row"><div class="col-xs-12"/></div></div>');

Now I want to unwrap parent div's of class "ms-rte-embedcode ms-rte-embedwp".

Html:
<div class="container">
<div class="row">
<div class="col-xs-12"/>
<div class="ms-rte-embedcode ms-rte-embedwp"> Test</>
</div>
</div>

Thanks.