---
title: "af cancel-import"
description: "Request that a repository's import stop for good"
---

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

# af cancel-import

<!-- Generated by tools/gen-reference.mjs from `af cancel-import --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

Stops an import that is still running, or one the forge could not take in. Nothing more of it is written and it is never published; the repository keeps its name, and `af import-status` shows it cancelled. An import already in cannot be cancelled. Requires an administrator; it takes effect at once unless the forge requires a second administrator.

## Usage

```text
af cancel-import [OPTIONS] <NAME>
```

## Arguments

- `<NAME>`

  Repository name

## Options

- `--reason <REASON>`

  Reason for the request, recorded with it

  Default: `""`

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af cancel-import web --reason "wrong source"
```

Source: https://docs.forge.workreef.dev/reference/af/cancel-import/index.mdx
