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.
-
Navigate to the reset script:
RACE/backend/SapInbound/src/utilities/deleteCollections.js
-
Run the script:
node deleteCollection.js
-
Ensure the
nosql
object in the script contains valid DB credentials before execution.