carthage_cache icon indicating copy to clipboard operation
carthage_cache copied to clipboard

Ability to nuke the S3 bucket

Open AndrewSB opened this issue 9 years ago • 2 comments

could we add something like carthage_cache nuke?

That would completely clear out all the archives? Maybe also deletes the local cache on the machine?

AndrewSB avatar Nov 17 '16 20:11 AndrewSB

That would be pretty useful! If you want to nuke all the archives in the S3 bucket I would suggest to add a method here to do that and then expose the nuke command here which should call a method in the Application object. The actual logic of calling the repository to nuke the S3 bucket archives and to also nuke the local cache should be placed here

Feel free to send a PR, currently I am a little bit overload so I only fix critical issues. I cannot promise I could add this feature ASAP but if you have some spare time and want to contribute I would be more than happy to review your PR 😄 !

guidomb avatar Nov 18 '16 14:11 guidomb

@guidomb after talking to my team we realized we'd rather hold on to all of our old archives (we're going to be moving the old ones to AWS infrequent storage), just in case the projects on GitHub go down at any point.

I think this still would be useful for some people though! This and the remove last N archives 😄

AndrewSB avatar Nov 18 '16 20:11 AndrewSB