Attachments

Delete attachments by path (idempotent)

Deletes multiple attachments by path and returns the deleted count. Deliberately not billing-gated so a downgraded user can always clean up. Requires the X-Idempotency-Key header for safe retries.

post/api/attachments/batch-delete

Request

  • Base URL: https://api.engram.page
  • URL: https://api.engram.page/api/attachments/batch-delete
  • Auth: HTTP bearer

Request body

pathsstring[] required

Example request

{
  "paths": [
    "assets/diagram.png",
    "assets/old-logo.svg"
  ]
}

Response

Deleted count

deletedinteger required

Example response

{
  "deleted": 3
}

Changes

No recorded changes to this operation across all 1 revision of this API.