divergence and the delta function

I have a question regarding the divergence of a certain function. Consider the following:

This is in spherical coordinates. The classical solution states:

Indeed we can show that this works by taking a volume integral and using Gauss' Theorem:

Notice this works for any radius and can be shown to work for arbitrarily shaped volumes.

Now notice if we simply continue with the volume integral instead of using Gauss' Thm:

If we let

This seems to imply that:

What have I done wrong here? Did I make a mistake in assuming f is a function of r alone and not of theta and phi? If it was a mistake to do so, wouldn't that mean the delta function has some strange asymmetries?