I am searching for a method in Tom.Net or core service to unpublish a component with a particular Component Template or a method which can unpublish the CT with all component created with particular schema. I was not able to figure out any method for unpublishing in Tom.Net which can work for a component template(if I use component Ids) or a schema(If I use component template). Please suggest, if anyone have used this type of methods earlier.
Little background about issue:
Because of some issue in our custom resolver implementation we have component published with wrong CT. Now we have to unpublish those components with wrong CT. We can't unpublish component with all CTs as this is a live environment.