Skip to main content
DELETE
/
storage
/
delete
/
{fileId}
JavaScript
const response = await fetch('https://api.worqhat.com/storage/delete/a1b2c3d4-e5f6-7890-abcd-ef1234567890', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});
const data = await response.json();
{
  "success": true,
  "message": "File deleted successfully",
  "deletedAt": "2025-07-26T03:28:08.123Z"
}

Authorizations

Authorization
string
header
required

API key authentication. Format - "Bearer YOUR_API_KEY"

Path Parameters

fileId
string<uuid>
required

Unique ID of the file to delete

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Response

File deleted successfully

success
boolean
Example:

true

message
string
Example:

"File deleted successfully"

deletedAt
string<date-time>
Example:

"2025-07-26T03:28:08.123Z"

I