Пример #1
0
def destroy_by_href(entity_ctx: PulpEntityContext, href: str) -> None:
    """
    Destroy an entry
    """
    entity_ctx.delete(href)
Пример #2
0
 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)