0. Turn on the completion/condition features (at site level settings and in course).
1. Create forum 'xxx' and turn on completion, e.g. manual tickboxes
2. Create web page 'yyy' and add a condition that xxx must be completed before it is shown.
3. Delete forum 'xxx'
At present, this causes an exception to be thrown and the page dies.