remove数据后可以使用compact进行空间释放
db.runCommand({"compact" : "app_message_all",force:true})
说明;
主从都要执行,单独在主库上执行,从库不会释放空间