code: def delete_mongo(database_name, collection_name,
                   query={}, just_one=False):
      
  
      l = []
      response_dict = {}
  
      try:
          mongodb_client_url = getattr(settings, 'MONGODB_CLIENT',
                                       'mongodb://localhost:27017/')
          mc = MongoClient(mongodb_client_url, document_class=OrderedDict)
          db = mc[str(database_name)]
          collection = db[str(collection_name)]
  
          mysearchresult = collection.remove(query, just_one)
  
          response_dict['code'] = 200
          response_dict['type'] = "remove-confirmation"
  
      except:
          # print "Error reading from Mongo"
          # print str(sys.exc_info())
          response_dict['num_results'] = 0
          response_dict['code'] = 500
          response_dict['type'] = "Error"
          response_dict['results'] = []
          response_dict['message'] = str(sys.exc_info())
      return response_dict
docs: delete from mongo helper