HI Madhukiran
Giving you a code that works is not a big deal. But I don't understand your requirement correctly.
I understood what is happening currently, but what are you trying to achieve with this.
What kind of data you are loading?, delta or full?. You can delete it from cube 1 using a program, but you are not deleting anything from cube 2. So there are chances of data duplication.
Could you please explain us the situation little more briefly.
Regards
Karthik