Skip to content

DELETE   /files/{table_name}/{id}/{file_name}

Delete file

Delete a specific file.

Business Rules

  • Soft delete only
  • Requires confirmation
  • Access is logged
  • S3 deletion delayed

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

table_name   path string

Entity type

id   path string

Entity ID

file_name   path string

File name

Optional Parameters

Click here to view an exhaustive list of all available parameters
additionalKey   query string

An additional key to categorize or organize your file uploads against this entity. ie additional_documents, photos, etc... defaults to __DEFAULT__

Try it out

Loading...

Output:

Responses

Description

File deleted

Route Source Code

Check out the source code for this route entrypoint here: /files/[table_name]/[id]/[file_name]/route.ts

Or the swagger.yaml spec this documentation was generated from: /files/swagger.yaml