---
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** (2022-11-28) `de37da78f522` — 1 info
  - endpoint added

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

---

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