INNER CODE UNIT · Python
delete
mlcommons/ck · ck/incubator/cbench/cbench/main.py:154
def delete(cid,
username,
api_key):
'''
Delete CK component from the portal if not permanent!
CID: CK identifier ({repo UOA}:){module UOA}:{data UOA}.
'''
from . import obj
r=obj.delete({'cid':cid,
'username':username,
'api_key':api_key})
if r['return']>0: process_error(r)
return 0
# LIST VERSIONS OF A GIVEN COMPONENT #############################################################################
@cli.command()