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

# Manage crawl jobs

> Stop, resume, and delete running crawl jobs.

Every management endpoint takes the crawl job `id` returned by [`POST /api/crawl`](/api-reference/endpoint/crawl/start). All three return `{ "ok": true }` on success.

## Stop

```http theme={null}
POST https://v2-api.scrapegraphai.com/api/crawl/:id/stop
```

Stops an in-flight crawl. Already-fetched pages remain available; no further URLs will be expanded.

```bash theme={null}
curl -X POST https://v2-api.scrapegraphai.com/api/crawl/79694e03-.../stop \
  -H "SGAI-APIKEY: $SGAI_API_KEY"
```

## Resume

```http theme={null}
POST https://v2-api.scrapegraphai.com/api/crawl/:id/resume
```

Resumes a stopped job from its last frontier.

```bash theme={null}
curl -X POST https://v2-api.scrapegraphai.com/api/crawl/79694e03-.../resume \
  -H "SGAI-APIKEY: $SGAI_API_KEY"
```

## Delete

```http theme={null}
DELETE https://v2-api.scrapegraphai.com/api/crawl/:id
```

Permanently removes the crawl record and its stored pages. Cannot be undone.

```bash theme={null}
curl -X DELETE https://v2-api.scrapegraphai.com/api/crawl/79694e03-... \
  -H "SGAI-APIKEY: $SGAI_API_KEY"
```

## Related

* Start a job: [`POST /api/crawl`](/api-reference/endpoint/crawl/start)
* Poll progress: [`GET /api/crawl/:id`](/api-reference/endpoint/crawl/get-status)
* Service overview: [Crawl](/services/crawl)
