import Logger from '/imports/startup/server/logger'; import Breakouts from '/imports/api/2.0/breakouts'; export default function clearBreakouts(breakoutId) { if (breakoutId) { const selector = { breakoutId, }; return Breakouts.remove(selector); } return Breakouts.remove({}, Logger.info('Cleared Breakouts (all)')); }