---
title: "Delete a loan (only if no payments recorded)"
method: DELETE
path: "/companies/{companyId}/loans/{id}"
tags: ["Loans"]
---

# Delete a loan (only if no payments recorded)

`DELETE /companies/{companyId}/loans/{id}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/loans/{id}`
- Auth: HTTP bearer

## Response `204`

Loan deleted

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Loan not found
- `409`: Loan has recorded payments

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
