Summary: After removing a tenant, you have to remove tenant databases in MongoDB manually.
Question/Issue Description:
You want to delete a multitenant site:
After removing the tenant in the Multi Tenant Adminin site you have to remove the databases manually.
Please proceed as follows:
OS | |
---|---|
Linux |
mongodump --out /tmp/mongodump |
Windows |
cd C:\xampp\mongodb\bin mongodump --out C:\mongodump |
Open MongoDB client command interface, which is typically located in:
Windows | C:\xampp\mongodb\bin\mongosh.exe |
---|---|
Linux | /usr/bin/mongosh |
Please run these commands for all databases:
use tonidoclouddb_site1
db.dropDatabase()