Peel and core apples and chop into large chunks.
Add apples to instant pot with lemon juice, cinnamon, nutmeg, ginger, sugar and if using, salted butter.
Give the ingredients a quick stir then set instant pot to 10 minutes.
After cooking, do a quick pressure release so as much of the steam can escape as possible.
Remove lid, select sauté and simmer, stirring occasionally for 15 minutes.
If apples have not broken down completely at this point or mixture still looks grainy, then use an immersion blender to blend until they are smooth.
Continue cooking on sauté stirring frequently until mixture thickens and starts to pop everywhere, If the popping gets too intense, set the lid of the instant pot loosely on top of the pot and shut instant pot off.
Add to jars and store in refrigerator or freeze in freezer containers.
For water bath canning this apple butter:
If water bath canning this apple butter (no added butter if canning), then add mixture to clean jars, clean the rims, add lids and loosely add the rings just until closed, not screwed on tightly.
Boil water in a water bath canner or large stock pot and boil apple butter jars for 12 minutes.
Remove from water and let sit on countertop for 24 hours. Check for a seal by pressing the middle of lid and if it is down then they are sealed.
Tighten the rings and store until use.