---
title: "Delete a specific 'PCN' file for a customer"
method: DELETE
path: "/customers/{customerId}/files/invoice/{pcnId}"
---

# Delete a specific 'PCN' file for a customer

`DELETE /customers/{customerId}/files/invoice/{pcnId}`

## Request

- Base URL: `https://api.open-finance.ai/v3/loans`
- URL: `https://api.open-finance.ai/v3/loans/customers/{customerId}/files/invoice/{pcnId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `delete:customers`

## Path parameters

- `customerId` string, required
- `pcnId` string, required

## Response `204`

File deleted successfully

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: PCN file or customer not found
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/loans.md) - [All operations](https://skmtc.dev/open-finance/apis/loans/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/loans/revisions/915c69e62042?raw)
