> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pulse-send.jiordiviera.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a file

> Emails already sent with this file keep their attachment until the end of their retention.



## OpenAPI

````yaml /openapi.json delete /files/{file}
openapi: 3.1.2
info:
  title: PulseSend API
  version: 1.0.0
  description: >-
    Send transactional email over HTTP. Authenticate with a `ps_live_` or
    `ps_test_` key.
servers:
  - url: https://pulse-send.jiordiviera.me/api/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Emails
  - name: Files
  - name: Templates
paths:
  /files/{file}:
    delete:
      tags:
        - Files
      summary: Delete a file
      description: >-
        Emails already sent with this file keep their attachment until the end
        of their retention.
      operationId: v1.files.destroy
      parameters:
        - name: file
          in: path
          required: true
          description: The file ID, prefixed `file_`.
          schema:
            type: string
          example: file_01jbz8m3k2q7x9c4v5n6p8r0st
      responses:
        '204':
          description: No content
        '404':
          $ref: d375a52a-0a56-4957-b2e2-822f0d79d276
components:
  securitySchemes:
    apiKey:
      type: http
      description: Your API key, `ps_live_…` or `ps_test_…`.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.