From catscratching.com

Declawing is an irreversible surgical procedure that involves amputating the last joint of the cat's "toes."... (Imagine having the last joint of your own fingers amputated. Not a pleasant idea.)...
Some cats develop an aversion to their litter box because of the pain associated with scratching in the litter after a declawing procedure.