#!/usr/bin/env python2 # -*- coding: utf-8 -*- from pymongo import MongoClient username, password, host, dbname = 'tazio', 'taziotazio', '127.0.0.1', 'CarTata' client = MongoClient('mongodb://%s:%s@%s/%s' % (username, password, host, dbname)) client[dbname]['data_psi'].drop() print("data_psi collection dropped.") client[dbname]['data_input'].drop() print("data_input collection dropped.")