---
title: "Cancel an import"
method: DELETE
path: "/repos/{owner}/{repo}/import"
tags: ["migrations"]
deprecated: true
---

# Cancel an import

`DELETE /repos/{owner}/{repo}/import`

> **Deprecated.**

Stop an import for a repository.

> [!WARNING]
> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `204`

Response

## Other responses

- `503` — Unavailable due to service under maintenance.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
