Removing nails from pallet planks can be a pain. A claw hammer will do the trick but sometimes the nail will be embedded. In this case, try driving the nail through using a thin center punch or another nail. When all else fails just cut out that section of wood.