def destroy_by_href(entity_ctx: PulpEntityContext, href: str) -> None: """ Destroy an entry """ entity_ctx.delete(href)
def callback(entity_ctx: PulpEntityContext) -> None: """ Destroy a {entity}. """ entity_ctx.delete(entity_ctx.pulp_href)
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)