---
title: "Unarchive a pull request"
method: DELETE
path: "/repos/{owner}/{repo}/pulls/{pull_number}/archive"
tags: ["pulls"]
---

# Unarchive a pull request

`DELETE /repos/{owner}/{repo}/pulls/{pull_number}/archive`

Unarchives a pull request. Removes the archived flag from the pull request.
Does not automatically reopen or unlock the pull request.
Only repository admins can unarchive pull requests.

## Path parameters

- `owner` string, required
- `repo` string, required
- `pull_number` integer, required

## Response `204`

Response

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

## Changes

- **2026-04-20** (2026-03-10) `924d108ecb4a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/pulls/:pull_number/archive/delete.md)

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/c4eff58d97bf/schema)
