Skip to content

Delete a file

DELETE/api/v1/content/{id}

Access
API key
Permission
content:delete

Delete owned content and release quota

One deletion for the site and API keys alike: the file and its link end at once, the quota is released in the same transaction, the encrypted objects and renditions go through the persistent deletion queue, and the request journal (GET /v1/requests) keeps the call with its key. Keys of the Windows app sign-in (device auth) carry content:delete since 2026-10-05; an app key issued before answers 403 SCOPE_REQUIRED until the app signs in again (a renewal never adds a scope).

Example request

curl -X DELETE "https://lac.pics/api/v1/content/Xq3u9RkT0bLmA7cV2pWz1eFy" \
  -H "Authorization: Bearer lac_api_YOUR_KEY"

Parameters

Path

  • idstringrequired

    The file or note id.

Responses

  • 200Successobject
    • okboolean
  • 400Invalid input
  • 401Authentication required
  • 403SCOPE_REQUIRED with params.scope content:delete: the key lacks the scope (a Windows app key issued before 2026-10-05: sign in again).
  • 404Content unavailable
  • 409Media processing, upload idempotency or paste revision conflict
  • 410Previously uploaded content was deleted or expired
  • 413Size or quota limit
  • 429Rate limit, or the account already uses all its upload slots
  • 503Upload or password verification capacity reached, or the database is momentarily busy

Example response

200 · application/json
{
  "ok": true
}

Error codes

Answers of any method with a key (an invalid or expired key, a missing permission, too many requests) are in Errors.

Delete a file: DELETE /api/v1/content/{id} · lacuna API