destroy

The destroy() method destroys the instance of the Window widget.

<div id="window" />

<script type="text/javascript">
jQuery(function($) {
    var window = $("#window").shieldWindow({
        title: "Window Title"
    }).swidget();

    window.destroy();
});
</script>