INNER CODE UNIT · Python

drop

pybel/pybel · src/pybel/cli.py:517

def drop(manager: Manager, network_id: int | None, yes):
    """Drop a network by its identifier or drop all networks."""
    if network_id:
        manager.drop_network_by_id(network_id)

    elif yes or click.confirm("Drop all networks?"):
        manager.drop_networks()


@manage.group()
def edges():
    """Manage edges."""


@edges.command()
@click.option("--offset", type=int)
@click.option("--limit", type=int, default=10)
@click.pass_obj

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…