change position of an object

suggestions please:
i considered two balls at position 1 and position 2 and i shown in the following image. when i move the object from position 1 to position 3 over position 2 object,15992-cropped23.jpg

then i need to automatically delete the position 2 object.whether it possible with unity directly or i need to use js or c#.
thanks.

If they have colliders you can use Overlap Spherecast to check for other objects and destroy them if you wish.