← 返回
未分类 Key 中文

Delete File

Delete a file from cloud storage by URL. Only the API key that uploaded the file can delete it.
通过 URL 删除云存储中的文件。仅拥有该文件上传时使用的 API 密钥才能删除。
rishabhdugar rishabhdugar 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 317
下载
💾 0
安装
1
版本
#latest

概述

Delete File

What It Does

Deletes a file from cloud storage by its URL. Verifies ownership — only the API key that uploaded the file can delete it.

When to Use

  • Remove files you no longer need
  • Clean up storage before the 30-day auto-deletion

Required Inputs

  • url — the file URL returned by the upload endpoint

Authentication

Send your API key in the CLIENT-API-KEY header.

Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.

Use Cases

  • Privacy Compliance — Delete files immediately after processing to meet GDPR/privacy requirements
  • Storage Cleanup — Remove files you no longer need before the 30-day auto-deletion
  • Workflow Cleanup — Delete intermediate files after a multi-step pipeline completes
  • Sensitive Document Handling — Immediately remove confidential documents after processing

Example Usage

curl -X POST https://pdfapihub.com/api/v1/file/delete \
  -H "CLIENT-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://bucket.s3.amazonaws.com/pdf/abc123_my_report.pdf" }'

Notes

  • Returns 403 if the file doesn't belong to the requesting API key

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 22:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,837
office-efficiency

Document to PDF

rishabhdugar
通过PDFAPIHub云API将office文档(DOCX、DOC、PPT、PPTX、XLS、XLSX、CSV、TXT、ODT、RTF)转换为PDF,文档上传至pdfapihub.com完成转换。
★ 0 📥 843
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,460