Beecargo

Get set up

  • ○Sign in
  • ○Connect your agent
  • ○Share a file

API

OverviewUpload a fileRemote uploadShare settingsClaim a fileAgent APIWebhooksRetrieve a fileGet file infoList files & foldersDelete a file

MCP

OverviewRegister an agentUpload a fileUpload statusRemote uploadLarge uploads & jobsFoldersShare settingsSeller payoutsBuy a priced shareClaim fileSearch toolsCreate checkoutRetrieve a fileGet file infoList filesDelete a fileFiles from a runUpload delegation

PreviousList files & foldersNextOverview
BlogPricingDashboardPrivacyTerms

Delete a file

Permanently delete a file from your account.


Same flow in MCP: beecargo_delete_file

Endpoint

DELETEhttps://api.beecargo.net/files/delete?fileId=FILE_ID

Authentication

Required. Send Authorization: Bearer YOUR_API_KEY. You can only delete files you own.

Authorization: Bearer YOUR_API_KEY

Anonymous files: delete with the token from upload: ?fileId=FILE_ID&token=DELETION_TOKEN

Request examples

Delete a file by id. This cannot be undone.

# Delete a file with API key

curl -X DELETE "https://api.beecargo.net/files/delete?fileId=550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Delete an anonymous file with deletion token (no API key needed)

curl -X DELETE "https://api.beecargo.net/files/delete?fileId=550e8400-e29b-41d4-a716-446655440000&token=YOUR_DELETION_TOKEN"

Query parameters

ParameterTypeRequiredDescription
fileIdStringYesFile id from upload (data.id), not a UUID
tokenStringNo*Deletion token for anonymous files (instead of an API key)

* The token param is only needed when deleting anonymous files without an API key.

Response

{
  "success": true,
  "message": "File deleted successfully"
}

Error responses

Common errors:

// File not found
{
  "success": false,
  "error": "File not found"
}

// Unauthorized (not owner or invalid API key)
{
  "success": false,
  "error": "Unauthorized to delete this file"
}

// Missing file ID
{
  "success": false,
  "error": "File ID is required"
}

Usage notes

  • Deletion is permanent
  • You can only delete files you own
  • The file is removed from storage and the database
  • Download stats for that file are removed too