function remove(firebase, dispatch, path, options = {}) {
  const { dispatchAction = true } = options
  const { dispatchRemoveAction } = firebase._.config
  return firebase
    .database()
    .ref(path)
    .remove()
    .then(() => {
      if (dispatchRemoveAction && dispatchAction) {
        dispatch({ type: actionTypes.REMOVE, path })
      }
      return path
    })
    .catch((err) => {
      dispatch({ type: actionTypes.ERROR, payload: err })
      return Promise.reject(err)
    })
}
Add watchers to a list of events
@param {object} firebase - Internal firebase object
@param {Function} dispatch - Action dispatch function
@param {string} path - Path of ref to be removed
@param {object} [options={}] - Configuration for removal
@param {boolean} [options.dispatchAction=true] - Whether or not to dispatch
REMOVE action
@returns {Promise} Resolves with path