# `MishkaDocument.Resources.Changes.DestroyClones`
[🔗](https://github.com/mishka-group/mishka_document/blob/v0.0.1/lib/mishka_document/resources/__changes/destroy_clones.ex#L5)

Deleting a version deletes every version cloned from it, however deep, each through the same
delete (`:destroy`, under the version's site) with the same actor — so each is refused, deleted with its pages and notes, logged and
broadcast as its own delete would be. The database's `source_version_id` reference deletes a
clone too, for a delete made past the action.

Refused, with nothing deleted, when a version that would go with it is the latest of its
document, so the latest is never deleted through another.

    destroy :destroy do
      change MishkaDocument.Resources.Changes.DestroyClones
    end

---

*Consult [api-reference.md](api-reference.md) for complete listing*
