Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

paperclip:clean does not remove deprecated styles #1823

Closed
chadila opened this issue Mar 27, 2015 · 2 comments
Closed

paperclip:clean does not remove deprecated styles #1823

chadila opened this issue Mar 27, 2015 · 2 comments

Comments

@chadila
Copy link

chadila commented Mar 27, 2015

Hello
I had in my model

has_attached_file :image, :styles => { :normal => "480x540>", :medium => "300x300>", :thumb => "100x100>" } 

I replaced it by

has_attached_file :image, :styles => { :normal => "480x540>" }

And called

rake paperclip:clean class=Myclass

The medium and thumb attachements are still on the HDD after this tasks, isn't it suppose to erase it?

Thanks

@tute
Copy link
Contributor

tute commented May 20, 2015

@jyurek? If we have a clean command it makes sense to me to erase "unknown" formats; but it is surprising to me that we would have this rake task in the first place. Seems risky to me!

@tute
Copy link
Contributor

tute commented Aug 19, 2016

I'd rather not delete unknown files. The directory might contain files not processed by paperclip at all. Thanks!

@tute tute closed this as completed Aug 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants