Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 1.2!

Delete a Package

We provide two ways to remove your packages/files/assets from your repositories:

  • Delete via the API using tools/integrations (such as the Cloudsmith CLI),
  • Delete directly via the Website UI.

Delete via Cloudsmith CLI

Identify a Package

To delete a package using the Cloudsmith CLI, you first need to identify the package you wish to delete. See Identifying a Package for instructions to do this.

Delete a Package

Once you have identified the package, you use the cloudsmith delete command to delete it:

cloudsmith delete OWNER/REPO/UNIQUE_ID

For example:

cloudsmith delete dan-mckinney/my-example-repo/G0rDBWcVBMEm

In this example, we identified that the package we want to delete has the Unique ID "G0rDBWcVBMEm" and we are deleting it from the "my-example-repo" repository:

cloudsmith delete CLI examplecloudsmith delete CLI example

cloudsmith delete CLI example


Delete via Website UI

You can delete a package via the Website UI:

  • Via the repository packages list
  • Via the package detail page

Delete via Repository Packages List

To delete a package via the repository packages list, click the orange "Tool" button to the right of the package name, then click "Delete":

Delete package button on repository packages listDelete package button on repository packages list

Delete package button on repository packages list

Delete via the Package Detail page

To delete a package via the package detail page, click the red "Delete" button to the right of the package name:

Delete package button on package detail pageDelete package button on package detail page

Delete package button on package detail page

After clicking a "Delete" button, you will then be presented with a confirmation form. Click "Delete" again to confirm deletion of the package:

Delete package formDelete package form

Delete package form

You will then get an on-screen message confirming that the package has been scheduled for deletion.


Did this page help you?