> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prune Inactive Stakes

> Remove a customer's already-unlocked stake records to free room for new stakes

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Each customer is capped at 50 stake records (active or otherwise). Once a stake has been unstaked, this endpoint lets you delete the inactive record so the customer can create new stakes. Has no effect on active stakes or available balance.

<Info>
  Calling this changes stake indexes, so refresh any cached `stake_index` values immediately after.
</Info>

### Request Body

<ParamField body="customer_ref" type="string" required>
  Your unique identifier for this customer
</ParamField>

### Response

<ResponseField name="tx_hash" type="string">
  Reference identifier for the prune operation
</ResponseField>

```javascript theme={null}
await fetch("https://tokens.shakesco.com/prune-inactive-stakes", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ customer_ref: "customer-123" }),
});
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "tx_hash": "0xabc..." }
  ```
</ResponseExample>
