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

# Purge link

> Delete the stored renders of the version a link plays now, and clear the CDN's cached copies of the link's video, thumbnails, storyboards and GIFs, within a minute. The next view renders them again, billed as new renders, except video and audio segments whose content is unchanged and still stored, which are reused. Other links to that version play the new renders too, and finished exports of it stop downloading (404): export again for a new download.

MCP tool: [`purge_link`](/mcp/tools/links#purge_link).



## OpenAPI

````yaml /api/openapi.json post /v1/links/{link_id}/purge
openapi: 3.1.0
info:
  title: Rendermate API
  version: v1
servers:
  - url: https://api.rendermate.com
security:
  - api_key: []
tags:
  - name: Account
  - name: Workspaces
  - name: Projects
  - name: Documents
  - name: Links
  - name: Exports
  - name: Assets
  - name: Generations
  - name: Persons
  - name: Help
paths:
  /v1/links/{link_id}/purge:
    post:
      tags:
        - Links
      summary: Purge link
      description: >-
        Delete the stored renders of the version a link plays now, and clear the
        CDN's cached copies of the link's video, thumbnails, storyboards and
        GIFs, within a minute. The next view renders them again, billed as new
        renders, except video and audio segments whose content is unchanged and
        still stored, which are reused. Other links to that version play the new
        renders too, and finished exports of it stop downloading (404): export
        again for a new download.


        MCP tool: [`purge_link`](/mcp/tools/links#purge_link).
      operationId: purge_link
      parameters:
        - description: The link, `lnk_…`.
          in: path
          name: link_id
          required: true
          schema:
            description: The link, `lnk_…`.
            type: string
      responses:
        '202':
          content:
            application/json:
              example:
                id: lnk_01JF3R0B4D6F8H1K3M5P7R9T2V
                status: purging
              schema:
                properties:
                  id:
                    description: 'What it purges: `lnk_…` or `doc_…`.'
                    type: string
                  status:
                    description: >-
                      `purging`: the stored renders and the cached copies are
                      gone within a minute.
                    type: string
                required:
                  - id
                  - status
                type: object
          description: Accepted
        '401':
          content:
            application/json:
              examples:
                unauthorized:
                  summary: unauthorized
                  value:
                    error:
                      code: unauthorized
                      doc_url: https://rendermate.com/docs/errors#unauthorized
                      message: 'provide a valid API key: Authorization: Bearer sk_…'
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `unauthorized`: provide a valid API key: Authorization: Bearer
            sk_…
        '403':
          content:
            application/json:
              examples:
                key_without_workspace:
                  summary: key_without_workspace
                  value:
                    error:
                      code: key_without_workspace
                      doc_url: https://rendermate.com/docs/errors#key_without_workspace
                      message: >-
                        this API key has no workspace: create a key in the
                        dashboard, under api keys in the workspace it should act
                        in
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `key_without_workspace`: this API key has no workspace: create a
            key in the dashboard, under api keys in the workspace it should act
            in
        '404':
          content:
            application/json:
              examples:
                link.not_found:
                  summary: link.not_found
                  value:
                    error:
                      code: link.not_found
                      doc_url: https://rendermate.com/docs/errors#link.not_found
                      message: no such link
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `link.not_found`: no such link'
        '429':
          content:
            application/json:
              examples:
                purge.rate_limited:
                  summary: purge.rate_limited
                  value:
                    error:
                      code: purge.rate_limited
                      doc_url: https://rendermate.com/docs/errors#purge.rate_limited
                      message: >-
                        this organization asked for … purges this hour: try
                        again in … minutes
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `purge.rate_limited`: this organization asked for … purges this
            hour: try again in … minutes
        '500':
          content:
            application/json:
              examples:
                internal:
                  summary: internal
                  value:
                    error:
                      code: internal
                      doc_url: https://rendermate.com/docs/errors#internal
                      message: internal error
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `internal`: internal error'
        '503':
          content:
            application/json:
              examples:
                temporal_unavailable:
                  summary: temporal_unavailable
                  value:
                    error:
                      code: temporal_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        renders and exports are unavailable right now; try again
                        shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `temporal_unavailable`: renders and exports are unavailable right
            now; try again shortly
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable, such as `asset.name_taken` or `not_available`.
              type: string
            doc_url:
              description: The code's entry on the Errors page.
              type: string
            message:
              description: What went wrong and what to do next.
              type: string
            request_id:
              description: >-
                The request's ID, also in its `x-request-id` header. Quote it
                when you contact support.
              type: string
          required:
            - code
            - message
            - doc_url
            - request_id
          type: object
      required:
        - error
      type: object
  securitySchemes:
    api_key:
      description: >-
        An API key from the dashboard, such as `sk_live_…`. It acts in its
        workspace.
      scheme: bearer
      type: http

````

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