2020年3月12日 星期四

MongoDB Delete Documents with Compact

C:\Program Files\MongoDB\Server\4.0\bin\mongo.exe


show databases
use Database
show collections
db['Users'].deleteMany({})
db.runCommand({compact:'Users'})

沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...