---
title: "Remove a site's cover image."
method: DELETE
path: "/sites/{idOrSlug}/cover"
tags: ["Sites"]
---

# Remove a site's cover image.

`DELETE /sites/{idOrSlug}/cover`

## Request

- Base URL: `https://api.stacktr.ee`
- URL: `https://api.stacktr.ee/sites/{idOrSlug}/cover`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.stacktr.ee/oauth/authorize`, token URL `https://api.stacktr.ee/oauth/token`, scopes: `sites:write`)

The thumbnail and link preview go back to a picture of the page. Owner-authed.

## Response `200`

Removed (`cover_at` is null).

- object
  - `ok` boolean, required

## Other responses

- `401`: Missing or invalid credentials.
- `404`: No such site.

---

[API](https://skmtc.dev/stacktr/apis/stacktree-api.md) · [All operations](https://skmtc.dev/stacktr/apis/stacktree-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stacktr/apis/stacktree-api/revisions/5878cce46977?raw)
