# Delete a Loan Application

`DELETE /lokta-lms/api/v1/loans/{loanId}`

Note: Only loans in "Submitted and awaiting approval" status can be deleted.

## Parameters
- `loanId` (path, integer, required): loanId

## Responses
- `200`: OK

## Response fields
- `clientId` (integer)
- `loanId` (integer)
- `officeId` (integer)
- `resourceExternalId` (string)
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X DELETE \
  'http://localhost:8080/lokta-lms/api/v1/loans/{loanId}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default'
```

## Example response
```json
{
  "clientId": 1,
  "loanId": 1,
  "officeId": 1,
  "resourceExternalId": "95174ff9-1a75-4d72-a413-6f9b1cb988b7"
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/deleteLoanApplication
