produce output what unbuild deletes

Fixes #1774