Unwanted sounds recording acoustic guitar

If you are using built in piezo pickups, you could try using a (dynamic) microphone instead.
Something like the Beyer 201 can sound fine on acoustic instruments, and it doesn’t pick up as much unwanted stuff.
Of cause most prefer a SDC or LDC, here mic. placement can really make a difference.