示例#1
0
文件: restapi.py 项目: reid-a/jarvis
def delete_all(file=""):
    """Provide methods for caution, this deletes your documents."""
    r = explore.select_all("https://jarvis.nist.gov/",
                           user,
                           passd,
                           cert=False,
                           format="json")
    for i in r:
        id = i["_id"]
        explore.delete(id, "https://jarvis.nist.gov/", user, passd, cert=False)
示例#2
0
def delete_all(file=''):
    """
    Caution, this deletes your documents
    """
    r = explore.select_all('https://jarvis.nist.gov/',
                           user,
                           passd,
                           cert=False,
                           format='json')
    for i in r:
        id = i['_id']
        explore.delete(id, 'https://jarvis.nist.gov/', user, passd, cert=False)
示例#3
0
def delete_all(file=''):
    r=explore.select_all('https://jarvis.nist.gov/',user,passd,cert=False,format='json')
    for i in r:
      id=i['_id']
      explore.delete(id,'https://jarvis.nist.gov/',user,passd,cert=False)