// This script deletes charging stations
// Filter charging stations by id pattern
-// Use Case: ev-simulator creates thousands of charging stations, which are not longer needed.
+// Use Case: charging-stations-simulator creates thousands of charging stations, which are not longer needed.
// Delete these charging stations all at once
// Config
// Mongo Connection and Query
if (config && config.mongoConnectionString) {
- MongoClient.connect(config.mongoConnectionString, {
- useUnifiedTopology: true,
- useNewUrlParser: true
- }, async function(err, client) {
+ MongoClient.connect(config.mongoConnectionString, async function(err, client) {
const db = client.db();
for await (const tenantID of config.tenantIDs) {