예제 #1
0
def destroy_by_href(entity_ctx: PulpEntityContext, href: str) -> None:
    """
    Destroy an entry
    """
    entity_ctx.delete(href)
예제 #2
0
파일: generic.py 프로젝트: wbclark/pulp-cli
 def callback(entity_ctx: PulpEntityContext) -> None:
     """
     Destroy a {entity}.
     """
     entity_ctx.delete(entity_ctx.pulp_href)
예제 #3
0
def destroy_by_name(entity_ctx: PulpEntityContext, name: str) -> None:
    """
    Destroy an entry
    """
    href = entity_ctx.find(name=name)["pulp_href"]
    entity_ctx.delete(href)