---
title: "Delete a bulk import"
method: DELETE
path: "/collections/{collection_id}/imports/{import_id}"
tags: ["Bulk Imports"]
---

# Delete a bulk import

`DELETE /collections/{collection_id}/imports/{import_id}`

## Request

- Base URL: `https://api.cloudglue.dev/v1`
- URL: `https://api.cloudglue.dev/v1/collections/{collection_id}/imports/{import_id}`
- Auth: HTTP bearer

Delete an import definition and its run history. Any active run is cancelled first. Imported files and collection memberships are never deleted by this operation.

## Path parameters

- `collection_id` string, uuid, required
- `import_id` string, uuid, required

## Response `200`

The import was deleted

- MetadataImportDelete
  - `object` 'metadata_import'
  - `id` string, uuid
  - `deleted` true

## Other responses

- `404`: Collection or import not found
- `500`: An unexpected error occurred on the server

## Changes

- **2026-10-30** `23d3f240819f`: 2 info
  - added the optional property `code` to the response with the `404` status
  - added the optional property `code` to the response with the `500` status
- **2026-08-18** `e401e330a58f`: 2 info
  - api tag `Bulk Imports` added
  - api tag `Metadata Imports` removed
- **2026-08-13** `96a727e8d42d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cloudglue/apis/cloudglue-api/changes/collections/:collection_id/imports/:import_id/delete.md)

---

[API](https://skmtc.dev/cloudglue/apis/cloudglue-api.md) - [All operations](https://skmtc.dev/cloudglue/apis/cloudglue-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudglue/apis/cloudglue-api/revisions/23d3f240819f?raw)
