How to Remove Bookmarks in Word (One or All)

2026-12-04 08:29:36 alice yang
AI Summarize:
ChatGPT
ChatGPT ✓
Claude ✓
Grok ✓
Perplexity ✓
Quick
Quick
Concise overview
Highlights
Key takeaways
Detailed
Structured explanation
Brief
One sentence summary
Summarize |

How to remove bookmarks in Word

KEY TAKEAWAYS:

  • You can remove bookmarks in Word without deleting the text, images, or other content they mark.
  • Use the Bookmark dialog box to delete individual bookmarks or a VBA macro to remove all bookmarks at once. Be careful when deleting hidden bookmarks, as they may be used by cross-references.
  • Turning off Show bookmarks hides bookmark brackets without deleting the bookmarks themselves.

Bookmarks are useful for navigating and linking to specific locations in a Word document, but some may no longer be needed after editing or updating the document. This guide explains how to remove bookmarks in Word, handle hidden bookmarks, and fix broken references. It also covers bookmark removal in Word for the web and batch processing with Python.

Note: Unless otherwise noted, the steps below apply to the desktop version of Microsoft Word for Windows. Features and menu options may differ in Word for Mac and Word for the web.

How to Remove Specific Bookmarks in Word

If you want to delete one or a few bookmarks while keeping the rest, use Word's built-in Bookmark dialog box.

  1. Go to the Insert tab and click Bookmark in the Links group. If you are using the simplified ribbon, you may need to look under the three-dot menu.

    Bookmark command on the Insert tab in Word

  2. In the Bookmark dialog box, sort the bookmarks by Name or Location to find the one you want to remove.

  3. Select the bookmark and click Delete. If you are unsure which part of the document it marks, click Go To before deleting it.

    Delete a selected bookmark in the Word Bookmark dialog box

  4. Repeat the process for any other bookmarks you want to remove.

  5. Close the Bookmark dialog and save your document.

Deleting a bookmark this way leaves the associated text, images, and formatting intact. However, hyperlinks or cross-references pointing to the deleted bookmark may stop working.

If you want to remove both a bookmark and the content it marks, select the entire bookmarked item directly in the document and press Delete instead.

For more information, see Microsoft's guide to adding and deleting bookmarks in Word.

How to Remove All Bookmarks in Word at Once

Word's Bookmark dialog box does not have a Delete All command. If you are cleaning up a long document or a template containing many bookmarks, you can use a short VBA (Visual Basic for Applications) macro to remove them in one operation. This method requires the desktop version of Word, as VBA macros cannot be run in Word for the web.

Before you begin: Save a backup of your document. Deleting bookmarks can break internal hyperlinks and cross-references, especially when hidden bookmarks are removed.

The macro below lets you choose which bookmarks to remove by changing the VBA Bookmarks.ShowHidden property:

VBA Setting Bookmarks Removed
bms.ShowHidden = False (default) All regular bookmarks, leaving hidden bookmarks intact
bms.ShowHidden = True All bookmarks, including hidden ones

To remove every bookmark in the document, change bms.ShowHidden = False to bms.ShowHidden = True before running the macro.

Step 1: Open the VBA Editor

With your Word document open, press Alt + F11 to open the Visual Basic Editor.

Select Insert > Module to create a new code module.

Insert a VBA module in Microsoft Word

Step 2: Enter the VBA Code

Copy and paste the following code into the module:

Sub RemoveBookmarks()

    Dim bms As Bookmarks
    Dim previousShowHidden As Boolean
    Dim i As Long
    Dim removedCount As Long

    Set bms = ActiveDocument.Bookmarks

    ' Store the current hidden bookmark setting
    previousShowHidden = bms.ShowHidden

    ' Preserve hidden bookmarks by default
    ' Change to True to remove hidden bookmarks as well
    bms.ShowHidden = False

    removedCount = bms.Count

    ' Remove bookmarks in reverse order
    For i = bms.Count To 1 Step -1
        bms(i).Delete
    Next i

    ' Restore the original setting
    bms.ShowHidden = previousShowHidden

    MsgBox removedCount & " bookmark(s) removed."

End Sub

The macro works through the bookmark collection in reverse order, preventing changes in bookmark indexes from interfering with the deletion process.

Step 3: Run the Macro

  1. Press Alt + F11 to return to Word.

  2. Press Alt + F8 to open the Macros dialog box.

  3. Select RemoveBookmarks and click Run.

    Run a VBA macro to remove bookmarks in Word

  4. When the macro finishes, Word displays the number of bookmarks removed.

  5. Go to Insert > Bookmark to check the remaining bookmarks. Select Hidden bookmarks if you also want to check the hidden entries.

  6. Save the document.

If you only need to keep the updated document and not the macro itself, you can save the file in the standard .docx format. To retain VBA code embedded in the document for future use, save it as a Word Macro-Enabled Document (.docm).

If Word prevents the macro from running, check your macro security settings or contact your system administrator. Only run macros you have created yourself or obtained from a trusted source.

How to Remove Hidden Bookmarks in Word

Some bookmarks do not appear in Word's default bookmark list. These are known as hidden bookmarks, and their names begin with an underscore (_).

Word automatically creates hidden bookmarks when you insert cross-references. For example, you may see a bookmark named _Ref123456789 in a document containing references to headings, figures, or tables.

To display and delete a hidden bookmark:

  1. Go to Insert > Bookmark.

  2. Select the Hidden bookmarks checkbox at the bottom of the dialog box.

  3. Locate the bookmark you want to remove. Use Go To if you need to check its location.

    Hidden bookmarks in the Word Bookmark dialog box

  4. Select the bookmark and click Delete.

Tip: If hidden bookmarks do not appear even when Hidden bookmarks is already selected, clear the checkbox and select it again to refresh the list.

Hidden bookmarks may support references elsewhere in the document. Delete them only if you are sure they are no longer needed.

If you need to remove all hidden and regular bookmarks at once, use the VBA macro described above with Bookmarks.ShowHidden set to True.

How to Hide Bookmark Brackets Without Deleting Bookmarks

If you see gray square brackets around text in Word, they may be bookmark indicators rather than actual characters in the document.

When bookmark indicators are enabled, Word displays bookmarks in two ways:

  • Brackets: Surround text, images, or other bookmarked content.
  • I-beam indicators: Mark a specific location where no content was selected when the bookmark was created.

Bookmark brackets and an I-beam indicator in Word

You do not need to delete the bookmarks to remove these visual markers. Instead, change Word's display settings:

  1. Go to File > Options.
  2. Select Advanced in the left pane.
  3. Scroll down to the Show document content section.
  4. Clear the Show bookmarks checkbox.
  5. Click OK.

Turn off Show bookmarks in Word Advanced Options

The bookmark indicators will disappear from view, but the bookmarks themselves will remain in the document. Existing links and references to those bookmarks will continue to work.

To display the indicators again, simply re-enable Show bookmarks.

Advanced: Remove Bookmarks from Word Documents with Python

If bookmark removal is part of a recurring document-processing task, such as cleaning up generated reports or preparing completed templates for distribution, you can automate the process with Python.

Spire.Doc for Python provides APIs for finding and deleting bookmarks in Word documents without requiring Microsoft Word to be installed.

Install Spire.Doc for Python

Install the library from PyPI using pip:

pip install Spire.Doc

Remove Specific Bookmarks by Name

When working with a document template, you may need to remove outdated or temporary bookmarks while retaining those still used for navigation.

For this example, suppose you have a Word document named project_report.docx containing the following four bookmarks:

Bookmark Name Expected Action
ProjectOverview Keep
DraftNotes Remove
OldSchedule Remove
FinalBudget Keep

The script below removes DraftNotes and OldSchedule and saves the modified document as a separate file.

from spire.doc import Document, FileFormat

doc = Document()

try:
    # Load the Word document
    doc.LoadFromFile("project_report.docx")

    # Specify the bookmarks to remove
    bookmark_names = ["DraftNotes", "OldSchedule"]

    for name in bookmark_names:
        # Find the bookmark by name
        bookmark = doc.Bookmarks.FindByName(name)

        if bookmark is not None:
            # Remove the bookmark
            doc.Bookmarks.Remove(bookmark)
            print(f"Removed: {name}")
        else:
            print(f"Bookmark not found: {name}")

    # Save the updated document
    doc.SaveToFile(
        "project_report_updated.docx",
        FileFormat.Docx
    )

finally:
    doc.Dispose()

The Bookmarks.FindByName() method locates a bookmark by its name, and Bookmarks.Remove() deletes the corresponding bookmark.

In the resulting document, only ProjectOverview and FinalBudget should remain in the bookmark list. The text originally marked by DraftNotes and OldSchedule is retained.

Word bookmarks before and after removal with Python

Batch Remove All Bookmarks from Multiple Word Documents

If you want to remove every bookmark from a document, the Bookmarks.Clear() method eliminates the need to find and delete bookmarks individually.

This method can also be used inside a loop to process multiple Word documents in a folder.

Important: Clearing the bookmark collection removes bookmarks that may be used by internal hyperlinks or cross-references, including hidden bookmarks in the collection. Work with copies of your documents and check any dependent references before distributing the results.

The following script processes .doc and .docx files, saves the modified documents to a separate folder, and preserves their original file formats.

from pathlib import Path
from spire.doc import Document, FileFormat

input_dir = Path("input_documents")
output_dir = Path("output_documents")

# Check that the input folder exists
if not input_dir.is_dir():
    raise FileNotFoundError(f"Folder not found: {input_dir}")

# Create the output folder
output_dir.mkdir(parents=True, exist_ok=True)

# Map file extensions to Word document formats
formats = {
    ".doc": FileFormat.Doc,
    ".docx": FileFormat.Docx
}

for file in sorted(input_dir.iterdir()):
    extension = file.suffix.lower()

    # Skip folders, unsupported files, and temporary Word files
    if (
        not file.is_file()
        or extension not in formats
        or file.name.startswith("~$")
    ):
        continue

    doc = Document()

    try:
        # Load the Word document
        doc.LoadFromFile(str(file))

        # Count bookmarks before removal
        bookmark_count = doc.Bookmarks.Count

        # Remove all bookmarks
        doc.Bookmarks.Clear()

        # Save the modified document
        output_file = output_dir / file.name
        doc.SaveToFile(str(output_file), formats[extension])

        print(f"{file.name}: {bookmark_count} bookmark(s) removed.")

    except Exception as e:
        print(f"Failed to process {file.name}: {e}")

    finally:
        doc.Dispose()

To run the script:

  1. Create a folder named input_documents in your working directory.
  2. Place the Word documents you want to process in that folder.
  3. Run the Python script.
  4. Find the modified documents in the output_documents folder.

Each document is processed independently. If one file cannot be opened or saved, the script reports the error and continues with the remaining files.

If you only need to remove all bookmarks from a single document, replace the bookmark-removal loop in the previous example with:

doc.Bookmarks.Clear()

For additional bookmark operations, refer to the BookmarkCollection API documentation.

Troubleshooting Bookmark Errors in Word

Removing a bookmark does not automatically update or remove other document elements that refer to it. If you notice broken hyperlinks or unexpected error messages after deleting bookmarks, check whether those elements still point to valid destinations.

Hyperlinks Stop Working After Deleting Bookmarks

When a hyperlink points to a bookmark within the same document, deleting the bookmark leaves the hyperlink without its original destination.

Depending on whether the link is still needed, you can:

  • Update the hyperlink: Right-click the link, select Edit Hyperlink, and choose another heading or bookmark under Place in This Document.
  • Remove the hyperlink: Right-click the link and select Remove Hyperlink to retain its displayed text without the link.

If your document contains many outdated links, see How to Remove Hyperlinks in Word for additional methods.

How to Fix "Error! Bookmark Not Defined." in Word

After deleting bookmarks and updating fields in Word, you may encounter one of these error messages:

  • Error! Bookmark Not Defined.
  • Error! Reference source not found.

These errors indicate that a field refers to a bookmark that Word can no longer locate. This can happen when a bookmark used by a cross-reference is deleted.

Error Reference source not found after deleting a bookmark in Word

There are several ways to fix the problem:

  • Restore a deleted bookmark. If a regular bookmark was removed accidentally, recreate it at the original location using the same name.
  • Recreate a broken cross-reference. For references that rely on automatically generated hidden bookmarks, delete the invalid cross-reference and insert a new one through References > Cross-reference.
  • Convert the reference to plain text. If you no longer need a dynamic reference, press Ctrl + Z immediately after the field update to restore its previous text. Then select the field and press Ctrl + Shift + F9 to unlink it.

After correcting the references, press Ctrl + A, followed by F9, to update fields in the main document content. Fields in headers, footers, and other separate document areas may need to be updated separately.

For more information about missing bookmarks and broken references, see Microsoft's bookmark troubleshooting guide.

Frequently Asked Questions

Do bookmark brackets appear when printing a Word document?

No. Bookmark brackets and I-beam indicators are on-screen editing marks. They do not appear in printed documents, so you do not need to remove bookmarks or hide their indicators before printing.

Can I recover a deleted bookmark in Word?

If you have just deleted a bookmark, try pressing Ctrl + Z to undo the deletion.

If undo is no longer available, you can recreate a regular bookmark by selecting its original content or location, going to Insert > Bookmark, entering the original bookmark name, and clicking Add.

If you cannot remember the bookmark's name or location, check an earlier version or backup of the document.

How to Remove a Bookmark in Word Online?

You can remove a bookmark directly in Word for the web without opening the document in the desktop app.

  1. Go to Insert > Link > Bookmarks and enable Show on document if the bookmark markers are not visible.
  2. Click the bookmark marker in the left margin.
  3. Click the Remove button that appears. Alternatively, right-click the bookmark and select Remove Bookmark.

This removes the bookmark without deleting the associated content.

For more details, see Microsoft's guide to using bookmarks in Word for the web.

See Also