       inserter = factory.createInserter()
       @each -> inserter.insert $(@) if inserter?
 
+    destroy: (options) ->
+      settings = $.extend true,
+        iframeSelector: '.js-uploader-iframe'
+        openSelector: '.js-uploader-open'
+      , options
+
+      $uploader.find(settings.openSelector).off '.uploader'
+
+      modalId = settings.modalId ? $uploader.data('modalId')
+      if modalId
+        $uploaderIframe = $("##{modalId}").find(settings.iframeSelector)
+      else
+        $uploaderIframe = $uploader.find(settings.iframeSelector)
+
+      $uploaderIframe.empty()
+
   $.fn.nmdUploader = (method) ->
     if methods[method] then methods[method].apply @, Array::slice.call(arguments, 1)
     else if typeof method is "object" or not method then methods.init.apply @, arguments

        if settings.open ? $uploader.data('open')
          openUploader()
        else
          $uploader.find(settings.openSelector).on 'click', (e) ->
            e.preventDefault()
            e.stopPropagation()
            openUploader()

        uploaderId = $uploader.attr('id')

        getUrl = ->
          prefix = settings.prefix ? $uploader.data('prefix')
          throw new Error("prefix isn't defined") unless prefix

