Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Deleting all db documents #13

Closed
fvisticot opened this issue Nov 4, 2018 · 1 comment
Closed

Deleting all db documents #13

fvisticot opened this issue Nov 4, 2018 · 1 comment

Comments

@fvisticot
Copy link

How to delete all documents in the db ?
Solution 1: find the correct query
Solution2: close the db, delete the file and recreate db

What is the recommandation ?

@marioreggiori
Copy link
Owner

The correct query would be

db.remove({});

But especially if you have big databases solution 2 would be the better choice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants