---
title: "Delete a gallery image"
method: DELETE
path: "/v1/projectId/{projectId}/gallery/images/{id}"
tags: ["Gallery"]
---

# Delete a gallery image

`DELETE /v1/projectId/{projectId}/gallery/images/{id}`

## Request

- Base URL: `https://api.bluefox.email`
- URL: `https://api.bluefox.email/v1/projectId/{projectId}/gallery/images/{id}`
- Auth: HTTP bearer

Also deletes the underlying file in storage - this cannot be undone.

## Path parameters

- `projectId` string, required
- `id` string, required

## Response `200`

Deleted

- object
  - `status` integer
  - `result` GalleryImage: Every project gets its own slice of the account-wide media gallery, plus read/write access to any account-wide shared folder's images - but never another project's own private images.
    - `_id` string
    - `name` string
    - `url` string
    - `parentFolderId` string, nullable: The containing folder's _id, or null if the image is at the top level of this project's gallery.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `403`: Missing or invalid API key
- `404`: Image not found

---

[API](https://skmtc.dev/bluefox/apis/bluefox-email-public-api.md) · [All operations](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/revisions/fa1a0a835c7f?raw)
