> ## 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.

# Remove Import

> Detach an imported security book from your venue

Deactivates an import link. The book stops appearing in [List Order Books](/endpoints/external-securities-trading/list-order-books) and stops resolving on the reads scoped to books you can reach.

Nothing is deleted. The link row is kept with `active: false`, so trade history stays intact and re-importing the same book reactivates this record.

<Warning>
  Removing an import does not cancel orders your traders already have resting on that book, and does not release their reservations. Cancel them first with [Cancel Order](/endpoints/external-securities-trading/cancel-order), or with [Cancel Orders On Chain](/endpoints/external-securities-trading/cancel-on-chain) if you want the signatures invalidated on chain as well.
</Warning>

## Path Parameters

<ParamField path="importId" type="string" required>
  Import ID, from [Import Order Book](/endpoints/external-securities-trading/import-order-book) or the `_importId` field on an imported book. This is the import record's ID, not the order book's.
</ParamField>

## Response Fields

<ResponseField name="data" type="object">
  <Expandable>
    <ResponseField name="id" type="string">Import ID.</ResponseField>
    <ResponseField name="instanceId" type="string">Your instance.</ResponseField>
    <ResponseField name="orderBookId" type="string">The book that was imported.</ResponseField>
    <ResponseField name="active" type="boolean">`false`.</ResponseField>
    <ResponseField name="updatedAt" type="string">ISO 8601 timestamp.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.trusset.org/orderbooks/external-securities/api/imports/clx_import_022" \
    -H "X-API-Key: trusset_your_key_here"
  ```

  ```typescript TypeScript theme={null}
  const res = await fetch(
    `https://api.trusset.org/orderbooks/external-securities/api/imports/${importId}`,
    { method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
  );
  const { data } = await res.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "id": "clx_import_022",
      "instanceId": "inst_abc123",
      "orderBookId": "clx_ob_extsec_088",
      "active": false,
      "updatedAt": "2025-06-15T12:10:00.000Z"
    }
  }
  ```
</ResponseExample>

## Error Codes

| Code                  | HTTP  | Cause                                               |
| --------------------- | ----- | --------------------------------------------------- |
| `IMPORT_NOT_FOUND`    | `404` | No import with that ID on your instance             |
| `SERVICE_NOT_ENABLED` | `403` | The Trading service is not enabled on this instance |
