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

# Delete Metadata Import

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



## OpenAPI

````yaml DELETE /collections/{collection_id}/imports/{import_id}
openapi: 3.0.0
info:
  title: Cloudglue API
  description: API for Cloudglue
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 0.7.17
servers:
  - url: https://api.cloudglue.dev/v1
security:
  - bearerAuth: []
paths:
  /collections/{collection_id}/imports/{import_id}:
    delete:
      tags:
        - Metadata Imports
      summary: Delete a metadata import
      description: >-
        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.
      operationId: deleteMetadataImport
      parameters:
        - name: collection_id
          in: path
          required: true
          description: The ID of the metadata collection
          schema:
            type: string
            format: uuid
        - name: import_id
          in: path
          required: true
          description: The ID of the metadata import
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The import was deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataImportDelete'
        '404':
          description: Collection or import not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: An unexpected error occurred on the server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    MetadataImportDelete:
      type: object
      properties:
        object:
          type: string
          enum:
            - metadata_import
        id:
          type: string
          format: uuid
        deleted:
          type: boolean
          enum:
            - true
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````