The best way (avoiding magic) to manipulate ##\delta##-functions or, generally, distributions, is by first pairing with an arbitrary (i.e. smooth, compactly supported) test function, doing the manipulations (usually involving partial integration) and limits in ##\mathbb{R}## and then, at the end, concluding that a certain identity, or limit representation holds true for the distributions in question, because the test function was chosen arbitrarily.
Any introduction to (or: containing material about) distribution theory will show you this in detail, while keeping the underlying functional analysis out, or to a minimum, so it is accessible to physicists with a good background in multivariable calculus. There is the book by Strichartz and the book by Duistermaat and Kolk, for example.