A family of Microsoft word processing software products for creating web, email, and print documents.
Index Field Codes display if the non-printing characters (¶) are toggled on. If you just want to not have them shown toggle non-printing characters off. [Command+8 toggles the display of non-printing characters.] Either way they do not display on paper or in a PDF.
If you actually want to remove all of the Index Field Codes you can use Advanced Find & Replace to search for fields using the code ^d in the Find what: field. Leave the Replace with: field blank. If the document contains no other types of fields you can Replace All. Otherwise, Replace only the Index Field Codes one at a time.