Inside our Tridion 2011 instance, there are a lot of legacy publications with huge number of published components and pages. We created a C# tool based on Tridion core service API to un-publish / unlocalize / uncheckout and delete them. But the relationship is too complex and size is too big. After more than 5 days continues running there are still more than a half items not be cleaned.
Is there any SQL Script can help us safely set related item's publish status to false so we can just delete it directly?