---
title: "Prune contract data"
method: POST
path: "/contract/{id}/prune"
---

# Prune contract data

`POST /contract/{id}/prune`

## Path parameters

- `id` string, required — A unique identifier for a file contract

## Request body

- object
  - `timeout` integer — A duration in milliseconds

## Response `200`

Contract pruned successfully

- object
  - `size` integer — The size of the pruned contract in bytes
  - `pruned` integer — The number of bytes pruned
  - `remaining` integer — The number of prunable bytes remaining
  - `error` string — An error message if the prune failed

## Other responses

- `500` — Internal server error

## Changes

- **2024-12-16** `ce856efcdea2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/contract/:id/prune/post.md)

---

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