File Delete API for Developers

    New

    Delete files uploaded with your API key by passing the file URL. The endpoint verifies ownership before deleting from storage.

    What it does

    Deletes an uploaded file from storage by URL.

    Validates ownership using API key + URL mapping before deletion.

    Useful for cleanup workflows, retention rules, and temporary file lifecycle management.

    Endpoint & Parameters

    POST /v1/file/delete

    url
    required

    File URL returned earlier by the upload endpoint.

    curl -X POST https://pdfapihub.com/api/v1/file/delete \
      -H "CLIENT-API-KEY: your_api_key_here" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "https://bucket.s3.us-east-1.amazonaws.com/images/270226/uuid_custom.png"
      }'

    Sandbox

    Clean up uploaded files safely

    Delete files by URL with API-key ownership validation in one call.