code: def delete(args):
      
      with _catalog(args) as cat:
          n = len(cat)
          cat.delete(args.args[0])
          args.log.info('{0} objects deleted'.format(n - len(cat)))
          return n - len(cat)
docs: cdstarcat delete OID
  
      Delete an object specified by OID from CDSTAR.