code: function remove(id) {
          var result = new $.Deferred();
          if (extensions[id] && extensions[id].installInfo) {
              Package.remove(extensions[id].installInfo.path)
                  .done(function () {
                      extensions[id].installInfo = null;
                      result.resolve();
                      exports.trigger("statusChange", id);
                  })
                  .fail(function (err) {
                      result.reject(err);
                  });
          } else {
              result.reject(StringUtils.format(Strings.EXTENSION_NOT_INSTALLED, id));
          }
          return result.promise();
      }
docs: Removes the installed extension with the given id.
  @param {string} id The id of the extension to remove.
  @return {$.Promise} A promise that's resolved when the extension is removed or
  rejected with an error if there's a problem with the removal.