class ActiveStorage::Attachment

def purge

Synchronously purges the blob (deletes it from the configured service) and destroys the attachment.
def purge
  blob.purge
  destroy
end