Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Registry
  • Getting started
    • All guides
        • Setting up PyPI
        • Creating a Python package
        • Pushing a Python package to a registry
        • Pulling a Python package from a registry
        • Deleting a Python package from a registry
        • Examples of working with PyPI registries
    • Creating a lifecycle policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  1. Step-by-step guides
  2. Managing artifacts
  3. Python artifact
  4. Deleting a Python package from a registry

Deleting a Python package from a registry

Written by
Yandex Cloud
Updated at May 26, 2026

You can delete a Python package from a Cloud Registry registry.

To delete a Python package, you need the cloud-registry.admin role or higher.

Management console
CLI
API
  1. In the management console, select the folder where the registry is located.
  2. Go to Cloud Registry.
  3. In the left-hand panel, select  Registries.
  4. Select the registry you want to delete the package from.
  5. In the left-hand panel, select  Artifacts.
  6. Click on the artifact name.
  7. Find the package version in the list.
  8. Click next to the package and select Delete.
  9. In the window that opens, click Delete.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

Note

You can find the artifact ID through the management console in Cloud Registry.

  1. Get a list of artifacts in the registry:

    yc cloud-registry registry list-artifacts --id <registry_ID>
    

    Result:

    +----------------------+-------------+--------+------+---------------------+
    |          ID          |    NAME     |  KIND  | PATH |     MODIFIED AT     |
    +----------------------+-------------+--------+------+---------------------+
    | cn172c0ldnh2******** | my-package1 | FOLDER |      | 2026-04-13 14:53:52 |
    | cn1j1rh7k416******** | my-package2 | FOLDER |      | 2026-04-13 14:53:53 |
    | cn1n0ufa7mcq******** | my-package3 | FOLDER |      | 2026-04-13 14:53:54 |
    +----------------------+-------------+--------+------+---------------------+
    
  2. Delete the artifact:

    yc cloud-registry artifact delete --id <artifact_ID>
    

    Result:

    done (1s)
    
  3. Make sure the artifact has been deleted:

    yc cloud-registry artifact get --id <artifact_ID>
    

To delete a Python package, use the delete REST API method for the Artifact resource or the ArtifactService/Delete gRPC API call.

Automatic deletion of old versionsAutomatic deletion of old versions

To automatically delete old package versions, use lifecycle policies. For more information, see Configuring lifecycle policies.

Example of a policy for Python packages:

[
  {
    "path_prefix": ".*",
    "delete": {
      "type": "SOFT_DELETE",
      "cooldown_period_days": 10,
      "version_condition": {
        "versions_count_greater_than": 5
      }
    }
  }
]

See alsoSee also

  • Pushing a Python package to a local registry in Cloud Registry
  • Pulling a Python package from a Cloud Registry
  • Configuring lifecycle policies
  • Lifecycle policy in Yandex Cloud Registry

Was the article helpful?

Previous
Pulling a Python package from a registry
Next
Examples of working with PyPI registries
© 2026 Direct Cursus Technology L.L.C.