How to Remove a Word Table of Contents Without Deleting Document Content
Question details
The user needs to remove a table of contents but finds that deleting it also deletes the actual document content.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Removing a table of contents when standard document text has been accidentally nested inside the TOC field codes.
- Observed behavior
- Deleting the table of contents field also deletes the document content contained within its field braces.
Always create a duplicate copy of your document before modifying or deleting field codes to prevent any accidental loss of important content.
Extract Content from Field Codes Before Deleting the Table of Contents
Reveal the hidden field codes to safely copy your text out of the table of contents field before deleting it.
When text is accidentally typed inside the field braces of a table of contents, deleting the table removes that text as well. By making field codes visible, you can rescue your text first.
Navigate to the beginning of your document. Press 'Alt + F9' on your keyboard to toggle field codes on, which will reveal the curly braces { } surrounding your table of contents.
Carefully highlight all the actual document content that is trapped inside the field braces, then right-click and select 'Copy' (or press Ctrl+C).
Select the entire table of contents field, including its braces, and press the 'Delete' key on your keyboard.
Click outside of any remaining fields in your document, right-click, and select 'Paste' (or press Ctrl+V) to restore your document content safely.
If you still need a table of contents, go to the 'References' tab and click 'Table of Contents' to insert a clean, new one.

Manage Table of Contents Safely with WPS Writer
WPS Writer offers intuitive tools for managing references and field codes, making it easy to fix layout issues and safely update or remove your Table of Contents without losing data.
- 1. Open Your Document: Launch WPS Writer and open the document containing the problematic Table of Contents.
- 2. Show Field Codes: Go to the 'Menu' in the top-left corner, select 'Options', click on 'View', and check the 'Field codes' option to reveal the hidden formatting.
- 3. Extract and Delete: Copy your text out of the braces, delete the TOC field, paste your text back into the normal page area, and easily generate a new TOC from the 'References' tab.

Frequently Asked Questions
Why does my text disappear when I delete the Table of Contents?
This happens if you accidentally typed or pasted your document text inside the hidden field code boundaries of the Table of Contents. When the field is deleted, everything inside it is removed as well.
How do I toggle field codes in my document?
You can quickly toggle field codes by pressing the 'Alt + F9' shortcut on your keyboard. This switches the view between the normal text display and the raw field codes enclosed in curly braces.
Can I just update the Table of Contents instead of deleting it?
Yes. If your Table of Contents is simply out of date, there is no need to delete it. Right-click anywhere on the Table of Contents and select 'Update Field' to refresh the page numbers or entire table.




