The Blueprinting feature of Tridion is really great and keeps all of our items ‘connected’ to the parent – and won’t let us delete an item if it has localized children. This is a problem when we want to clean up our system and remove old items – or if you’ve been using bCopy and accidentally copied an item you didn’t want to.
BDelete is the inverse of BCopy – UnLocalizing all children and then after this deleting the parent. This script does this for Components, Pages, Structure Groups, or Folders.
Scenarios – When you need to do pre-cleanup work
Delete Page: Pages need to be unpublished first. The tool does not unpublish pages.
Delete Component: Components need to be removed from Pages, removed from Component Link fields in other Components, and unpublished. The tool does not do this and it will fail.
Delete Folder: Will work every time, no dependencies.
Delete Structure Group: Will work every time, no dependencies.
Code is on GitHub at https://github.com/rcurlette/TridionBDelete/blob/master/bDelete.asp