Skip to content

Remove Key and clean the value #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RustyNova016 opened this issue Apr 24, 2024 · 1 comment
Open

Remove Key and clean the value #70

RustyNova016 opened this issue Apr 24, 2024 · 1 comment

Comments

@RustyNova016
Copy link
Contributor

The documentation of cacache::remove() says this: "Removes an individual index metadata entry. The associated content will be left in the cache".

Is there a safe way to remove the key and the content? Or is automatically done at one point?

@djanderson
Copy link

Old, but in case anyone else stumbles across this:

let fully = cacache::RemoveOpts::new().remove_fully(true);
fully.remove(&cache_dir, &key).await;

https://docs.rs/cacache/13.1.0/cacache/index/struct.RemoveOpts.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants