How to delete unused property names?

See this bug report, which seems to handle a similar case.