I used the paperclip module with amazon s3 server for storing images.
I can uploaded an image successfully with below line.
album_photo.avatar.url(:original)
But how can I delete this image from S3? I don't know how.
I call a simple destroy method like below:
def destroy
@album.destroy
respond_to do |format|
format.js
end
end
But it only delete the image from the DB not from S3.
I referred to Paperclip - delete a file from Amazon S3? link but I don't understand.
So what am I missing?