for await (const tenantID of config.tenantIDs) {
const response = await db
- .collection(tenantID + '.chargingstations')
+ .collection(`${tenantID}.chargingstations`)
.deleteMany({ _id: { $regex: config.idPattern } });
- console.log(
+ console.info(
response.deletedCount,
`Charging Stations with id = %${config.idPattern}% deleted. TenantID =`,
tenantID