code: function destroyInstance (instanceId) {
    var instance = instances[instanceId] || {};
    if (instance.app instanceof Vue$2) {
      instance.app.$destroy();
    }
    delete instances[instanceId];
  }
docs: Destroy an instance with id. It will make sure all memory of
  this instance released and no more leaks.
  @param {string} instanceId