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
      • Deleting an artifact from a registry
    • Creating a lifecycle policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  1. Step-by-step guides
  2. Managing artifacts
  3. Deleting an artifact from a registry

Deleting an artifact from a registry

Written by
Yandex Cloud
Updated at July 8, 2026
View in Markdown

You can delete the artifact from a registry in Cloud Registry.

To delete an atrifact, 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. Navigate to Cloud Registry.
  3. In the left-hand panel, select Registries.
  4. Select the registry you want to delete the artifact from.
  5. In the left-hand panel, select  Artifacts.
  6. Click on the artifact name.
  7. Find the artifact version in the list.
  8. Click next to the artifact 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.

  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 an artifact, 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 artifact versions, use lifecycle policies. For more information, see Configuring lifecycle policies.

Policy example:

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

Was the article helpful?

Previous
Pushing a Go module from the registry
Next
Creating a lifecycle policy
© 2026 Direct Cursus Technology L.L.C.