Joseph Mullen - 2003-10-06

Logged In: YES
user_id=788646

I have confirmed the behavior that you describe with one
minor addition. If you delete buckets from the bottom up the
records in all_asset_duplicate and all_asset_record are
properly handled. It appears that the case where a bucket
contains any other bucket is not properly handled. We will
log this as an issue.

In the meantime, your workaround is to start at the bottom
bucket with assets and work up to the point where you have
deleted all the buckets that contain assets. At that point
you can go to the top of the tree and delete from the
highest level.

An example:

Bucket 1
Bucket 2a
Element
Assets
Bucket 2b
Element
Assets

If you delete Bucket 2a and 2b individually everything is
fine. If you delete bucket 1 it behaves as you have noted
leaving orphan records in all_asset_duplicate and _record
and not setting mark_trash = 'Y'.