utilities/handler-helper.js
function _removeMany(
  ownerModel,
  ownerId,
  childModel,
  associationName,
  payload,
  Log
) {
  let request = { params: { ownerId: ownerId }, payload: payload }
  return _removeManyHandler(
    ownerModel,
    ownerId,
    childModel,
    associationName,
    request,
    Log
  )
}
function _removeMany(
  ownerModel,
  ownerId,
  childModel,
  associationName,
  payload,
  Log
) {
  let request = { params: { ownerId: ownerId }, payload: payload }
  return _removeManyHandler(
    ownerModel,
    ownerId,
    childModel,
    associationName,
    request,
    Log
  )
}
function _removeMany ( ownerModel , ownerId , childModel , associationName , payload , Log ) { let request = { params : { ownerId : ownerId } , payload : payload } return _removeManyHandler ( ownerModel , ownerId , childModel , associationName , request , Log ) }
RemoveMany function exposed as a mongoose wrapper.
@param ownerModel: The model that is being removed from.
@param ownerId: The id of the owner document.
@param childModel: The model that is being removed.
@param associationName: The name of the association from the ownerModel's perspective.
@param payload: A list of ids
@param Log: A logging object
@returns {object} A promise returning true if the remove succeeds.
@private
RemoveMany function exposed as a mongoose wrapper .