Skip to main content

delete_package

Remove a package from the current branch from Modelbit's private package repository.

Parameters

mb.delete_package(name=, version=, ...)
  • name: str The name of the package to remove.
  • version: str The version of the package to remove.
  • branch: Optional[str] The branch to use when deleting the package. If not specified, the current branch is used.

Example

Removing package my_package==1.2.3:

Remove one package by specifying its name and version:

mb.delete_package(name="my_package", version="1.2.3")

Remove a package from the dev branch:

Specify branch= to remove a package from that branch:

mb.delete_package(name="my_package", version="1.2.3", branch="dev")

See also