code: function _handleRemoveFromPaneView(e, removedFiles) {
          var handleFileRemoved = function (file) {
              var doc = DocumentManager.getOpenDocumentForPath(file.fullPath);
  
              if (doc) {
                  MainViewManager._destroyEditorIfNotNeeded(doc);
              }
          };
  
          // when files are removed from a pane then
          //    we should destroy any unnecssary views
          if ($.isArray(removedFiles)) {
              removedFiles.forEach(function (removedFile) {
                  handleFileRemoved(removedFile);
              });
          } else {
              handleFileRemoved(removedFiles);
          }
      }
docs: file removed from pane handler.
  @param {jQuery.Event} e
  @param {File|Array.<File>} removedFiles - file, path or array of files or paths that are being removed