def deleteH5(host, token, channel, annid):
  
  # Creating the url
  url = 'http://{}/ocpca/{}/{}/{}/'.format(host, token, channel, annid)
  
  # Opening the url and verifying if it connects or else exit the program
  try:
    req = urllib2.Request ( url )
    req.get_method = lambda: 'DELETE'
    response = urllib2.urlopen(req)
    print url 
  except urllib2.URLError, e:
    print "Failed URL {}, Error {}".format(url, e)
Delete an Annotation
dataset/ETHPy150Open neurodata/ndstore/util/testRest.py/deleteH5