The CleanUpDistributionPublisherByName method completely removes implementation of publications from the distribution database used by the named Publisher.
object.CleanUpDistributionPublisherByName( Name )
object
Expression that evaluates to an object in the Applies To list
Name
String that specifies a Publisher by name
HRESULT CleanUpDistributionPublisherByName(
SQLDMO_LPCSTR szName);
Use the CleanUpDistributionPublisherByName method to remove publication implementation when the Publisher is offline or otherwise not available.