Contents Menu Expand Light mode Dark mode Auto light/dark mode
⚠ python-gitlab 3.0.0 has been released with several breaking changes.
python-gitlab v3.1.0
python-gitlab v3.1.0

Table of Contents

  • Getting started with the CLI
  • Getting started with the API
  • CLI examples
  • API examples
    • Access requests
    • Appearance
    • Applications
    • Award Emojis
    • Badges
    • Branches
    • Clusters
    • Broadcast messages
    • Commits
    • Deploy keys
    • Deploy tokens
    • Deployments
    • Discussions
    • Environments
    • Events
    • Epics
    • Features flags
    • Geo nodes
    • Groups
    • Group Access Tokens
    • Issues
    • Keys
    • Issue boards
    • Labels
    • Notification settings
    • Merge Trains
    • Merge requests
    • Merge request approvals settings
    • Milestones
    • Namespaces
    • Notes
    • Packages
    • Pages domains
    • Personal Access Tokens
    • Pipelines and Jobs
    • Projects
    • Project Access Tokens
    • Protected branches
    • Releases
    • Runners
    • Project Remote Mirrors
    • Registry Repositories
    • Registry Repository Tags
    • Search API
    • Settings
    • Snippets
    • System hooks
    • Templates
    • Todos
    • Topics
    • Users and current user
    • CI/CD Variables
    • Sidekiq metrics
    • Wiki pages
  • API reference (gitlab package)
    • gitlab.v4 package
  • CLI reference (gitlab command)
  • Changelog
  • Release notes
  • FAQ

Registry Repositories¶

References¶

  • v4 API:

    • gitlab.v4.objects.ProjectRegistryRepository

    • gitlab.v4.objects.ProjectRegistryRepositoryManager

    • gitlab.v4.objects.Project.repositories

  • Gitlab API: https://docs.gitlab.com/ce/api/container_registry.html

Examples¶

Get the list of container registry repositories associated with the project:

repositories = project.repositories.list()

Delete repository:

project.repositories.delete(id=x)
# or
repository = repositories.pop()
repository.delete()
Next
Registry Repository Tags
Previous
Project Remote Mirrors
Copyright © 2013-2018, Gauvain Pocentek, Mika Mäenpää. 2018-2022, python-gitlab team | Created using Sphinx and @pradyunsg's Furo theme. | Show Source
Contents
  • Registry Repositories
    • References
    • Examples