Are you trying to prevent the import of a style, or do you want to prevent the import of keystrokes that have a particular style applied to them?
(Brand new InDesign user, here.)
Basically, I just want to do a Search/Replace for all keystrokes styled with Headings 1-9 and delete those keystrokes from the InDesign document. I want to perform that task after the keystrokes are imported into InDesign, instead of doing them in MS Word prior to import. (I want them to exist in Word. I want them to NOT exist in InDesign.)
Right now I'm looking into this InDesign script called FindChangeByList. Does that sound like something that might have me on the right track?
Go to Edit>Find/Change. Leave the Find and Change fields blank, click the icon near the Find Format section (circled in red in my screen shot), and when the Find Format Settings window comes up, select the paragraph style you want. If you click Find, it will find the first bit of text styled with that style. If click Change, it will change the text to what is entered in the Change field, which is nothing, so it will delete the text. You can use any combination of Find, Find Next, Change, Change All or Change/Find to control what is selected and deleted.
Excellent, thank you!