---
title: "Delete a warehouse import"
method: DELETE
path: "/projects/{projectId}/warehouse-sources/imports/{importId}"
tags: ["Warehouse Imports"]
---

# Delete a warehouse import

`DELETE /projects/{projectId}/warehouse-sources/imports/{importId}`

Deletes a warehouse import and optionally deletes the imported data.

When `delete_data: true` is specified, an event deletion request will be
created to remove the imported events from Mixpanel.

## Path parameters

- `projectId` integer, required
- `importId` integer, required

## Request body

- object
  - `delete_data` boolean — Whether to also delete the imported data from Mixpanel

## Response `200`

Success

- object
  - `status` 'ok' — "ok" if the request succeeded, "error" otherwise.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/mixpanel/apis/query-api.md) · [All operations](https://skmtc.net/mixpanel/apis/query-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpanel/query-api/revisions/f442da95252a/schema)
