Deep deletion in database operations