Clear Existing MongoDB Collections (Optional)

When switching SAP environments or reinitializing the system, you may need to clear existing MongoDB collections. This provides a clean start for reseeding and prevents conflicts with outdated data.

  1. Navigate to the reset script: RACE/backend/SapInbound/src/utilities/deleteCollections.js
  2. Run the script: node deleteCollection.js
  3. Ensure the nosql object in the script contains valid DB credentials before execution.