need to dig in narrow rocky land
It's called a pick and a shovel. Should take an hour or three. I own a backhoe - I don't try to get close to my foundation walls with it - that's inviting disaster. P&amp;S is also inexpensive and can get anywhere, unlike equipment.

If you mean "solid rock" the answer is a bit different, clarify if that's the case. For rocky dirt (or any dirt) loosen with pick (and/or digging bar), remove with shovel.