class ActiveStorage::Attachment

def purge_later

Destroys the attachment and asynchronously purges the blob (deletes it from the configured service).
def purge_later
  blob.purge_later
  destroy
end