Nail scraping is a procedure used to obtain specimens from the nails for diagnostic purposes. It involves the collection of material from under the nail plate or from the surface of the nail. This is often done to diagnose fungal infections, bacterial infections, or other nail disorders.