I just built the chat application on the meteor and deployed it with meteor deploy appname
. Now I want to delete the data present in the application. As we know meteor supports Mongo
database, I tried by meteor reset
but this reset only my local db not the application. So how can I delete the data from the meteor repo?
This is as simple as opening up a mongo shell to the remote database on the meteor.com servers.
all you need to do is type
meteor mongo appname
where appname is the name that you deployed your app to.
once you have a command prompt you can can use db.collectionName.remove({}) on each collection to get rid of your data.
Alternatively you can delete your whole deployment from the meteor servers.
meteor deploy --delete appname
Then redeploy
Meteor deploy appname
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With