cdstarcat delete OID

    Delete an object specified by OID from CDSTAR.

def delete(args):
    """
    cdstarcat delete OID

    Delete an object specified by OID from CDSTAR.
    """
    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)