Skip to content
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

Add option for removing binaries and / or "everything" as well #77

Closed
bes opened this issue Dec 17, 2022 · 5 comments
Closed

Add option for removing binaries and / or "everything" as well #77

bes opened this issue Dec 17, 2022 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@bes
Copy link
Contributor

bes commented Dec 17, 2022

Would you consider adding a new flag for removing the binary and / or a "remove everything" flag?

Sometimes I am out of disk space, and I just want to nuke everything, but since I have several projects going at once, cargo-sweep will leave multiple files behind, some of which are several hundred megabytes (debug builds with debug symbols and sources for iOS).

I think it would be handy with a --nuke option (there's probably a better name....) to just remove everything from the /target folders.

Thanks

@jyn514
Copy link
Collaborator

jyn514 commented Feb 2, 2023

What would be the difference between this and cargo clean?

Anyway, I think this is the same as #90, which you can emulate today with --recursive --time 0.

@jyn514 jyn514 added the duplicate This issue or pull request already exists label Feb 2, 2023
@bes
Copy link
Contributor Author

bes commented Feb 5, 2023

Yes, this is the same as #90
Difference from cargo clean is that I can run sweep on all my projects instead of one at a time.

@bes bes closed this as completed Feb 5, 2023
@bes
Copy link
Contributor Author

bes commented Feb 5, 2023

@jyn514 closed because it seems there is a will in #90 to implement it

@Systemcluster
Copy link

I'm using cargo-clean-all for this purpose. It deletes the complete target directory of all projects, including the incremental directory which cargo-sweep doesn't yet (tracked in #50).

@jyn514
Copy link
Collaborator

jyn514 commented Feb 19, 2023

@Systemcluster how does cargo-clean-all differ from cargo-sweep? if it does everything this project does I wonder if we should just archive the project and point people there 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants