Solaris 10 - removing packages when files have been deleted

Is there any way to do this?

Files/directory have been deleted but pkginfo reports the packages still there. Is there any way to clean this out?

What error do you get from pkgrm?

Sorted now. Found out easiest way was to restore directories so it could do a proper re-install.