NoCache

Preview of Uninstall MongoDB Completely on Debian/Ubuntu-Based Linux

Uninstall MongoDB Completely on Debian/Ubuntu-Based Linux

Cyrus Kao

If you encounter some problems with your MongoDB server and try to reinstall it or just want to uninstall it. The following will cover how to purge Mongo completely (including dependencies, configuration file, logs and database storage) on Debian/Ubuntu-based Linux distros (e.g. Linux Mint, Pop!OS, Elementary OS).

Preview of Install the Latest Version of MongoDB on Ubuntu 20.04, 18.04, 16.04

Install the Latest Version of MongoDB on Ubuntu 20.04, 18.04, 16.04

Cyrus Kao

MongoDB is one of the most popular NoSQL databases around. In this tutorial we'll be covering how to install the latest version of MongoDB Community Server from its official repository, and the following steps work for Ubuntu 20.04 LTS (Focal), 18.04 LTS (Bionic) and 16.04 LTS (Xenial).

Preview of Auto Delete Expired Documents in MongoDB with Node.js (TTL Index)

Auto Delete Expired Documents in MongoDB with Node.js (TTL Index)

Cyrus Kao

TTL Indexes in MongoDB are very useful for storing data like logs or user sessions. The document will remove itself after a certain amount of time which is specified by the index. This tutorial will be done in both JavaScript and TypeScript using Node.js with node-mongodb-native, which is the official MongoDB Node.js driver.