---
title: "Scrap Ship"
method: POST
path: "/my/ships/{shipSymbol}/scrap"
tags: ["Fleet"]
---

# Scrap Ship

`POST /my/ships/{shipSymbol}/scrap`

Scrap a ship, removing it from the game and returning a portion of the ship's value to the agent. The ship must be docked in a waypoint that has the `Shipyard` trait in order to use this function. To preview the amount of value that will be returned, use the Get Ship action.

## Path parameters

- `shipSymbol` string, required

## Response `200`

Ship scrapped successfully.

- object
  - `data` object, required
    - `agent` AgentJson, required — unresolved $ref
    - `transaction` ScrapTransactionJson, required — unresolved $ref

## Changes

> 50 revisions in range; 2 not diffed.

- **2025-02-06** `a4500b4e7ef1` — 1 breaking
  - added the new path request parameter `shipSymbol`
- **2024-03-06** `18f7b7e07380` — 1 info
  - endpoint added
- **2023-05-20** `86f8c56c4690` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/spacetradersapi/apis/spacetraders-api/changes/my/ships/:shipSymbol/scrap/post.md)

---

[API](https://skmtc.dev/spacetradersapi/apis/spacetraders-api.md) · [All operations](https://skmtc.dev/spacetradersapi/apis/spacetraders-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spacetradersapi/spacetraders-api/revisions/197cf9b9a2b6/schema)
