delete old logs from mongoDB.