code: function (context, payload) {
          var state = context.state;
          var entity = state.$name;
          var where = typeof payload === 'object' ? payload.where : payload;
          return context.dispatch(state.$connection + "/delete", { entity: entity, where: where }, { root: true });
      }
docs: Delete data from the store.