Support the VirtueMart project and become a member
Is it just deleting Product Y and Product X's price deletes?
Milbo makes a good point though, old products using the old database links?