DocsFilesDelete

Delete File

Delete a file from the system.

Endpoint

DELETE ${baseUrl}/files

Query Parameters

ParameterTypeDescription
fileIdstringThe ID of file to delete

Response

interface DeleteFileResponse {
  success: boolean
  message: string
}

Example Request

const response = await fetch('${baseUrl}/files?fileId=abc123', {
  method: 'DELETE',
  headers: {
    Authorization: 'Basic YOUR_API_KEY',
  },
})
 
const data = await response.json()

Error Codes

Status CodeDescription
200File Deleted Successfully
401Unauthorized
403Forbidden
404File Not Found
500Server Error