These are paper clip methods that you can use to remove attachments:
module Paperclip
class Attachment
def clear
queue_existing_for_delete
@errors = {}
end
def destroy
clear
save
end
So you see that destruction only removes the attachment if an error does not occur. I tried this with my own installation against S3, so I know it breaks the job.
, - , ? I.e validates_attachment_presence - ?
, @user.logo.destroy, @user.errors, , .