Cleanup of tags and related products.

When deleting a product, cleanup of tags and related products.