def destroy
      if attached?
        self.storage.destroy(self.path)
        self.styles.each do |style, options|
          self.storage.destroy(self.path(style))
        end
      end
      @purge = []
      @queue = {}
    end
def destroy
      if attached?
        self.storage.destroy(self.path)
        self.styles.each do |style, options|
          self.storage.destroy(self.path(style))
        end
      end
      @purge = []
      @queue = {}
    end
Destroy an attachment.

 Usage:

   @object.avatar.destroy