After a Tridion CMS Database restore from another environment we cannot unpublish Components from the Broker. If we publish to the Broker then we can unpublish. We want to
Components themselves are never published from Tridion, they are only published as part of a Component Presentation (Component + Component Template).
The SetPublishedTo
method on a Component Template takes a Component as a parameter. So by calling it you can set one Component Presentation as Published or Unpublished.
Once you've unpublished all Component Presentations of a Component, that Component implicitly becomes Unpublished.