I\'ve made use of modal window for a wizard implementation which has around 4,5 steps. I need to destroy it completely after the last step(
Single line complete removal on hide ( ES6 )
$("#myModal").on('hidden.bs.modal', (e)=>e.currentTarget.remove());