# Delete mocks for endpoints that no longer exist

Mock handlers still answering for routes the real API removed, deleted so the two surfaces match.

Category: Mocks, fixtures, and test doubles
Source: https://letsship.ai/use-cases/delete-mocks-for-removed-endpoints
Published: 2026-08-25

## Goal

Delete mock handlers for endpoints the real API no longer serves.

## Acceptance criteria

- Every removed handler is confirmed absent from the API contract first
- No test depends on the removed handlers
- A conformance run passes after the deletion
- The removed routes are listed in the description

## What lands as proof

A conformance run showing the mock and the contract now describe the same set of routes.

## 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: Remove mocks for endpoints the API dropped

Description: Delete mock handlers for endpoints the real API no longer serves.

Acceptance criteria:
- Every removed handler is confirmed absent from the API contract first
- No test depends on the removed handlers
- A conformance run passes after the deletion
- The removed routes are listed in the description

Before you create the issue, compare this repository's mock handlers against the API contract and list the routes the mock still answers for that the API does not.
```

## Questions

### What does the agent actually change?

The ticket is scoped to one outcome: delete mock handlers for endpoints the real API no longer serves. 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 the mock surface matches the live surface, proven by the conformance run, 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.
