Steps

If the menu is hidden, click Open menu first.

  1. Open the page, collection item, Theme, layout, shared design part, site menu or Site-wide details.
  2. Choose Discard changes. Keel asks: “Put {name} back to what’s on your site? Your changes since it was last published are thrown away.”
  3. Confirm Discard changes. The whole draft returns to the published version, and unsaved edits in this browser are thrown away too. Visitors keep seeing the same published version. Earlier versions records the discard.

For example, if About is published at /about and you change its words and its address to /our-team, Discard changes brings back its published words and /about. Its layout and search settings go back too.

Something that was never published

An item that has never been published offers Delete page or Delete {kind} instead. Pages and collection items go to their deleted list and can be brought back. A kind without a deleted list is deleted for good; read the confirmation before continuing.

A never-published theme or set of site-wide details offers Delete theme or Delete site-wide details instead. The confirmation says it is deleted for good and cannot be brought back.

For AI helpers

A site administrator, including an approved helper, can delete a never-published theme or set of site-wide details with DELETE /api/sites/{siteId}/theme/{id} or DELETE /api/sites/{siteId}/globals/{id} and the current If-Match. For example, read the theme, then send DELETE /api/sites/{siteId}/theme/{id} with If-Match: "AAAAAAAAB9E=". A published one is refused with 400 naming id; use Discard changes for it. A missing If-Match returns 428; a stale one returns 409 with current.