Skip to content

Delete Upload API

Overview

Deletes an upload record belonging to the authenticated user. The upload is identified by the x-upload-id header.

Endpoint

DELETE https://api.apidatatools.com/delete-upload-api

Authentication

Include your API key in the x-api-key header.

Headers

Header Type Required Default / values Description
x-api-key string Yes Your API key Authenticates the request.
x-upload-id string Yes No default Identifies the upload to delete.

Request parameters

This endpoint does not require a request body. Provide the upload ID in the x-upload-id header.

curl example

curl -X DELETE "https://api.apidatatools.com/delete-upload-api" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-upload-id: YOUR_UPLOAD_ID"

Success response

A successful request returns HTTP 200 with a JSON response containing a message:

{
  "message": "Upload YOUR_UPLOAD_ID deleted successfully"
}

Error handling

Error responses include status, error, request_id, and details.message; details may also contain additional information.

HTTP status Error code Meaning
400 MISSING_UPLOAD_ID The x-upload-id header is missing or empty.
400 UPLOAD_NOT_FOUND The upload was not found for the authenticated user.
400 DDB_READ_FAILED The upload record could not be read.
400 DELETE_FAILED The upload record could not be deleted.
401 UNAUTHORIZED Authentication context is missing or invalid.
404 USER_NOT_FOUND The authenticated user was not found.
429 RATE_LIMITED The request rate limit was exceeded.
500 PLAN_NOT_FOUND Plan configuration could not be found.
500 INTERNAL_ERROR An unexpected error occurred.

Notes

  • The upload ID is looked up for the authenticated user; an ID belonging to another user is not found.
  • Management API rate limits depend on your plan. See tool limits.