Delete a file
Remove a file from your server. Irreversible — the file is permanently deleted.
POST Endpoint
POST https://pushftp.com/api/delete/{connectionId}Example
curl -X POST https://pushftp.com/api/delete/YOUR_CONNECTION_ID \
-H "Authorization: Bearer pftp_your_key" \
-H "Content-Type: application/json" \
-d '{"path": "/uploads/old-report.csv"}'Log in to see your real API key and connection IDs here.
pathrequiredFull remote path to the file to deleteResponse
{
"success": true,
"deleted": "/uploads/old-report.csv"
}Errors
404— File not found at the specified path.400— Missingpathparameter.
Counts as 1 action toward your monthly limit.