Discarding a draft throws away every unpublished change and returns the model to the version you published last. Use it when an experiment did not work out, or when you want to start again from what is currently live.
This article covers discarding a draft. To put a draft live instead, see the "Publish a model draft" article.
Discard the draft
- Open the model. The Draft badge next to the name confirms there are unpublished changes.
- Select the revert arrow, to the right of the Publish button.
The page switches to the published version straight away and a message appears in the bottom right.
The ten-second grace period
Nothing is deleted immediately. For ten seconds you can select Restore draft to put your unpublished changes back exactly as they were. The circle beside the button counts that window down.
The draft is discarded for good as soon as any of these happens:
- The ten seconds run out.
- You dismiss the message without selecting Restore draft.
- You leave the model page, close the tab, or reload.
- You start editing the model again.
Once the grace period has passed, the only way back to those changes is the version history, where you can open the version the draft was based on and use it as a new draft.
When the revert arrow is unavailable
Hovering a disabled revert arrow tells you why:
- No unpublished changes to revert - the model is already clean.
- This model has no published version yet - the model has never been published, so there is nothing to fall back to. Delete the labels or entities you no longer want instead.
- Not available while viewing an older version - go back to the draft first.
- Not available while an improvement is running - wait for the improvement run to finish or cancel it.
When examples need a correction first
If your draft added a label or entity and you used it to correct an example, that example cannot be read by the published model. Tekst asks you to sort those examples out before discarding, so your example set stays usable against the version you are returning to.
Selecting the revert arrow then opens a panel naming how many examples are affected:
- Review examples opens the correction flow. The label picker offers only labels that exist on the published model, so you can relabel each example with a value the published version understands. Finishing the batch lands on a Ready to revert screen.
- Remove examples and revert deletes those examples and discards the draft in one go. There is no grace period on this path.
Related articles
- To understand drafts, see the "What is a model draft?" article.
- To put a draft live, see the "Publish a model draft" article.
- To recover an earlier version, see the "View a model's version history" article.
0 comments
Please sign in to leave a comment.