# Correct documentation that references code which no longer exists

Documentation pointing at functions, flags, and files that were deleted, corrected and checked automatically.

Category: Documentation and knowledge
Source: https://letsship.ai/use-cases/correct-docs-referencing-removed-code
Published: 2026-08-25

## Goal

Fix documentation that references code that no longer exists.

## Acceptance criteria

- Every code reference in the documentation resolves to real code
- A check verifies references and runs in the pipeline
- Documentation for genuinely removed features is deleted rather than corrected
- The check reports which file and line failed

## What lands as proof

An automated reference check, since manual verification decays the week after it is done.

## Prompt

Copy this to an agent to open the ticket:

```text
Create a Linear issue in my team and assign it to the SHIP agent.

Title: Fix documentation referencing removed code

Description: Fix documentation that references code that no longer exists.

Acceptance criteria:
- Every code reference in the documentation resolves to real code
- A check verifies references and runs in the pipeline
- Documentation for genuinely removed features is deleted rather than corrected
- The check reports which file and line failed

Before you create the issue, grep this repository's documentation for symbols and paths, then check which still exist.
```

## Questions

### What does the agent actually change?

The ticket is scoped to one outcome: fix documentation that references code that no longer exists. Work that serves that outcome is in scope, and anything outside it is left for a separate ticket, so the pull request stays reviewable.

### How do I know the work is done?

The pull request carries the evidence, not only the diff. Here that means every reference resolves to real code, checked automatically, so a reviewer can confirm the result without reproducing the work locally.

### How much oversight does this need?

None is required before the run starts. Every claim this ticket makes can be checked by machine, so the agent works straight through and a person reviews the finished pull request like any other.
