Have a document which is 'missing' a property and has only one state (either unpublished or published). Open this document in the CMS (do not edit the document). The missing property will be added by a plugin or by project specific code. Attempt to close this document, a dialog will be shown asking to save or discard the changes.
Upon clicking discard the document is being deleted.