In the popup, type cmd, and press ENTER.ĥ. Open Command Prompt. Open the command prompt by pressing WINDOWS + R. Download Script. Download the script to the server by clicking here, and save it to your working directory.Ĥ. You may ignore all other files included in the package.ģ. Extract mongo. Extract \bin\mongo.exe to a working directory of your choice. zip release that corresponds to your OS and the MongoDB that matches the one your UniFi Network application version is using, as seen in the MongoDB log, or stated in the application release notes on the Community.Ģ. Visit the MongoDB official download website, and download the. Download mongo. The Windows UniFi installer does not include the mongo binary. How to Prune a UniFi Network Application Hosted on Windowsġ. If there is suspected invalid or corrupt entries in your database, please follow the instructions below. Compacting the database involves defragmentation, but not error correcting. The compact database option will not remove data from the database, only shrink the dataSize of what is currently in the database. Assuming you are able to log into the UniFi Network application, please use the compact database button under the Services section in Settings > Maintenance instead of following the manual pruning instructions in this article. The UniFi Network application offers the option to compact the database from within the application itself. UniFi uses MongoDB to store relevant information about connected devices, application configuration, clients, and statistics.
How to Prune a UniFi Network Application Hosted on UniFi OS (UDM-Pro).How to Prune a UniFi Network Application Hosted on Linux (Ubuntu, Debian, and Cloud Key).How to Prune a UniFi Network Application Hosted on macOS.How to Prune a UniFi Network Application Hosted on Windows.Always remember to create a backup of your Network application prior to performing any major changes, such as this one. If it is not running, please start the application before performing the steps outlined in this article. The UniFi Network application needs to be running prior to executing the script.