Data Reset
To reset all data from ApiOmat, mainly the MongoDBs have to be deleted. Additionally, old backups when using the Restore Module can be deleted.
Deleting databases
To delete a single database, log into mongodb an execute the following commands (<DBNAME> refers to the database name you want to delete):
Code
<DBNAME>.dropDatabase();
If you want to delete all databases in the system, use the following script in MongoDB:
Code
use apiomat;
db.adminCommand(
"listDatabases"
).databases.forEach( function (d) {
if
(d.name !=
"local"
&& d.name !=
"admin"
&& d.name !=
"config"
)
db.getSiblingDB(d.name).dropDatabase();
})
Deleting restore data
To delete data from restore module, simply delete all directories in the restore directory specified during installation.