How to delete a projects Docker Layer Cache

How to delete a projects Docker Layer Cache

Previously, you would have to wait for 3 days of no builds to reset the DLC Cache or remove it from your config. This is now possible via the CircleCI CLI.

 

Step 1

Confirm you are on version v0.1.24705 or later of the CircleCI CLI.

circleci version

 

Step 2

Please run the following command for the project for which you wish to delete the DLC for:

circleci project dlc purge <vcs-type> <org-name> <project-name> [flags] 

 

You can also delete your DLC cache via the UI

Navigate to your project on app.circleci.com

Click Project Settings.

Navigate to Docker Layer Caching.

Click Delete Cache Contents.

Screenshot_2023-04-06_at_10.05.43_AM.png

Additional Resources

https://circleci-public.github.io/circleci-cli/circleci_project_dlc_purge.html

 

Was this article helpful?
1 out of 2 found this helpful

Comments

0 comments

Article is closed for comments.