---
title: "DELETE /{projectKey}/import-containers/{importContainerKey}"
method: DELETE
path: "/{projectKey}/import-containers/{importContainerKey}"
---

# DELETE /{projectKey}/import-containers/{importContainerKey}

`DELETE /{projectKey}/import-containers/{importContainerKey}`

## Request

- Base URL: `https://import.europe-west1.gcp.commercetools.com`
- URL: `https://import.europe-west1.gcp.commercetools.com/{projectKey}/import-containers/{importContainerKey}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://auth.europe-west1.gcp.commercetools.com/oauth/token` scopes: `manage_import_containers:{projectKey}`
- TypeScript: <https://skmtc.dev/commercetools/apis/import-api/docs/:projectKey/import-containers/:importContainerKey/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an Import Container in the Project.

Generates the [ImportContainerDeleted](ctp:api:type:ImportContainerDeletedEvent) Event.

## Response `200`

The deleted Import Container.

- ImportContainer
  - `key` string, required
  - `resourceType` 'business-unit' | 'category' | 'customer' | 'discount-code' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-selection' | 'product-tailoring' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | 'variant' | 'type'
  - `version` number, double, required
  - `retentionPolicy` RetentionPolicy
    - `strategy` 'ttl', required
  - `createdAt` string, datetime, required
  - `lastModifiedAt` string, datetime, required
  - `expiresAt` string, datetime

## Other responses

- `404`: The Import Container to delete wasn't found.

## Changes

- **2026-06-26** `13af4e5cda94`: 1 warning
  - added the new `variant` enum value to the `resourceType` response property for the response status `200`
- **2026-05-27** `6ad0361536a0`: 1 warning
  - added the new `product-tailoring` enum value to the `resourceType` response property for the response status `200`
- **2025-08-19** `31ad35794b9e`: 1 warning
  - added the new `business-unit` enum value to the `resourceType` response property for the response status `200`
- **2025-07-08** `b8e72389c2fe`: 1 warning
  - added the new `product-selection` enum value to the `resourceType` response property for the response status `200`
- **2025-07-04** `81a079347c38`: 2 info
  - added the optional property `expiresAt` to the response with the `200` status
  - added the optional property `retentionPolicy` to the response with the `200` status

[Operation history](https://skmtc.dev/commercetools/apis/import-api/changes/:projectKey/import-containers/:importContainerKey/delete.md)

---

[API](https://skmtc.dev/commercetools/apis/import-api.md) - [All operations](https://skmtc.dev/commercetools/apis/import-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commercetools/apis/import-api/revisions/980be2e37843?raw)
