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

# Clear Market Register

> Remove the asset register named for the collateral token behind a market

Removes the asset register this instance named for the collateral token behind the market. This is a database write: nothing is signed and nothing goes on chain.

Only the instance that deployed the market can clear the register. A lender of record is refused with `403 REGISTER_ISSUER_ONLY`. The call passes the same on-chain check as [Set Market Register](https://docs.trusset.org/endpoints/asset-register/set-market-register.md).

The assignment is stored per collateral token, so clearing it applies to every market this instance deployed on that token. The register loses its imports of those markets and its access to their pledge record, and its webhooks receive no further events for them. Events already queued for the register are still delivered.

Clearing a market that names no register changes nothing and answers `200` with `register: null`.

## Path Parameters

**marketAddress** `string` *required*

A market this instance deployed, `0x` followed by 40 hex characters. Lowercase or correctly checksummed.

## Response Fields

The response is the record of [Get Market Register](https://docs.trusset.org/endpoints/asset-register/get-market-register.md#response-fields), with `register` reading `null`.

```bash cURL theme={null}
curl -X DELETE "https://api.trusset.org/asset-registers/api/markets/0x70a0e25c7b768b87e658348b3b577678a173e038/register" \
  -H "X-API-Key: trusset_your_key_here"
```

```typescript TypeScript theme={null}
const res = await fetch(
  `https://api.trusset.org/asset-registers/api/markets/${marketAddress}/register`,
  { method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
if (!success) throw new Error(`${error.code}: ${error.message}`);
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
    "tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
    "canEdit": true,
    "appliesTo": "TOKEN",
    "onChain": false,
    "register": null
  },
  "error": null,
  "metadata": {
    "timestamp": "2026-11-18T11:02:30.000Z",
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "instanceId": "cmrz4d1v20000cghx8k6p3m7t"
  }
}
```

## Error Codes

| Code | HTTP | Cause |
| - | - | - |
| `VALIDATION_ERROR` | `400` | `marketAddress` is not `0x` followed by 40 hex characters |
| `INVALID_ADDRESS` | `400` | `marketAddress` is the zero address, or mixed case with a failing checksum |
| `AUTH_REQUIRED` | `401` | No `X-API-Key` header |
| `AUTH_FAILED` | `401` | The key is malformed, unknown, expired, or its instance is archived |
| `CREDIT_LIMIT_EXCEEDED` | `402` | The instance's monthly credit allowance is exhausted |
| `ACCOUNT_FROZEN` | `403` | The account behind the key is suspended |
| `SERVICE_NOT_ENABLED` | `403` | The account does not have the lending service |
| `REGISTER_ISSUER_ONLY` | `403` | This instance holds the market as lender of record, or none of its verified wallets deployed the market or was named its issuer at deployment |
| `MARKET_NOT_FOUND` | `404` | This instance holds no lending market with this address |
| `MARKET_TOKEN_UNKNOWN` | `409` | The market records no collateral token |
| `RATE_LIMIT_EXCEEDED` | `429` | More than 10 writes in the minute |
| `REGISTER_CLEAR_FAILED` | `500` | The assignment could not be removed |
| `DEPLOYER_UNREAD` | `503` | The deployment could not be read from the chain, so nothing was changed. Retry shortly |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.