class ActiveStorage::Attached::Many

def detach

Deletes associated attachments without purging them, leaving their respective blobs in place.
def detach
  attachments.destroy_all if attached?
end