---
title: "File Deleted"
method: POST
path: "file.deleted"
tags: ["File Events"]
---

# File Deleted

`POST file.deleted` (webhook)

This event is triggered when a file is deleted from the system.

## Payload

- FileDeletedEvent — Event emitted when a file is deleted
  - `id` string, required — The id of the event
  - `timestamp` string, required — The timestamp of the moment when the event was created in ISO 8601 format
  - `type` 'file.deleted', required — The type of the event
  - `data` object, required — The data of the event
    - `id` string, required — The ID of the file
    - `name` string, required — The name of the file
    - `type` 'image/png' | 'image/jpeg' | 'image/webp' | 'application/pdf', required — The type of the file that was deleted

## Acknowledgement `2XX`

Webhook received successfully

---

[API](https://skmtc.dev/scan-documents/apis/scan-documents-api.md) · [All operations](https://skmtc.dev/scan-documents/apis/scan-documents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scan-documents/scan-documents-api/revisions/42f9aa9c3b27/schema)
