Delete File
/install delete-file
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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install delete-file - After installation, invoke the skill by name or use
/delete-file - Provide required inputs per the skill's parameter spec and get structured output
What is Delete File?
Delete a file from cloud storage by URL. Only the API key that uploaded the file can delete it. It is an AI Agent Skill for Claude Code / OpenClaw, with 64 downloads so far.
How do I install Delete File?
Run "/install delete-file" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Delete File free?
Yes, Delete File is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Delete File support?
Delete File is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Delete File?
It is built and maintained by Rishabh Dugar (@rishabhdugar); the current version is v1.0.0.